Refactor #957 - Improve TypeScript definitions

pull/973/head
mertsincan 2021-02-09 17:49:37 +03:00
parent 328cb93a11
commit 1c81464760
66 changed files with 417 additions and 229 deletions

View File

@ -1,8 +1,11 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Accordion extends Vue { interface AccordionProps {
multiple?: boolean; multiple?: boolean;
activeIndex?: Number|[Number]; activeIndex?: Number|[Number];
}
declare class Accordion {
$props: AccordionProps;
$emit(eventName: 'tab-open', e: {originalEvent: Event, tab: any}): this; $emit(eventName: 'tab-open', e: {originalEvent: Event, tab: any}): this;
$emit(eventName: 'tab-close', e: {originalEvent: Event, tab: any}): this; $emit(eventName: 'tab-close', e: {originalEvent: Event, tab: any}): this;
$slots: { $slots: {

View File

@ -1,9 +1,13 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class AccordionTab extends Vue { interface AccordionTabProps {
header?: string; header?: string;
active?: boolean; active?: boolean;
disabled?: boolean; disabled?: boolean;
}
declare class AccordionTab {
$props: AccordionTabProps;
$slot: { $slot: {
'': VNode[]; '': VNode[];
header: VNode[]; header: VNode[];

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class AutoComplete extends Vue { interface AutoCompleteProps {
modelValue?: any; modelValue?: any;
suggestions?: any[]; suggestions?: any[];
field?: string|Function; field?: string|Function;
@ -14,6 +14,10 @@ declare class AutoComplete extends Vue {
inputStyle?: any; inputStyle?: any;
inputClass?: string; inputClass?: string;
forceSelection?: boolean; forceSelection?: boolean;
}
declare class AutoComplete {
$props: AutoCompleteProps;
$emit(eventName: 'item-select', e: {originalEvent: Event, value: any}): this; $emit(eventName: 'item-select', e: {originalEvent: Event, value: any}): this;
$emit(eventName: 'item-unselect', e: {originalEvent: Event, value: any}): this; $emit(eventName: 'item-unselect', e: {originalEvent: Event, value: any}): this;
$emit(eventName: 'dropdown-click', e: {originalEvent: Event, query: string}): this; $emit(eventName: 'dropdown-click', e: {originalEvent: Event, query: string}): this;

View File

@ -1,9 +1,11 @@
import Vue from 'vue'; interface AvatarProps {
declare class Avatar extends Vue {
label?: string; label?: string;
icon?: string; icon?: string;
image?: string; image?: string;
} }
declare class Avatar {
$props: AvatarProps
}
export default Avatar; export default Avatar;

View File

@ -1,5 +1,7 @@
import Vue from 'vue'; interface AvatarGroupProps {}
declare class AvatarGroup extends Vue {} declare class AvatarGroup {
$props: AvatarGroupProps;
}
export default AvatarGroup; export default AvatarGroup;

View File

@ -1,9 +1,11 @@
import Vue from 'vue'; interface BadgeProps {
declare class Badge extends Vue {
value?: any; value?: any;
severity?: string; severity?: string;
size?: string; size?: string;
} }
declare class Badge {
$props: BadgeProps;
}
export default Badge; export default Badge;

View File

@ -1,5 +1,5 @@
import Directive from 'vue'; import { ObjectDirective } from 'vue';
declare interface BadgeDirective extends Directive {} declare const BadgeDirective: ObjectDirective;
export default BadgeDirective; export default BadgeDirective;

View File

@ -1,10 +1,14 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class BlockUI extends Vue { interface BlockUIProps {
blocked?: boolean; blocked?: boolean;
fullScreen?: boolean; fullScreen?: boolean;
baseZIndex?: number; baseZIndex?: number;
autoZIndex?: boolean; autoZIndex?: boolean;
}
declare class BlockUI {
$props: BlockUIProps;
$emit(eventName: 'block'): this; $emit(eventName: 'block'): this;
$emit(eventName: 'unblock'): this; $emit(eventName: 'unblock'): this;
$slots: { $slots: {

View File

@ -1,8 +1,10 @@
import Vue from 'vue'; interface BreadcrumbProps {
declare class Breadcrumb extends Vue {
home?: any; home?: any;
model?: any[]; model?: any[];
} }
declare class Breadcrumb {
$props: BreadcrumbProps;
}
export default Breadcrumb; export default Breadcrumb;

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface ButtonProps {
declare class Button extends Vue {
label?: string; label?: string;
icon?: string; icon?: string;
iconPos?: string; iconPos?: string;
@ -8,4 +6,8 @@ declare class Button extends Vue {
badgeClass?: string; badgeClass?: string;
} }
declare class Button {
$props: ButtonProps;
}
export default Button; export default Button;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Calendar extends Vue { interface CalendarProps {
modelValue?: Date | Date[]; modelValue?: Date | Date[];
selectionMode?: string; selectionMode?: string;
dateFormat?: string; dateFormat?: string;
@ -41,6 +41,10 @@ declare class Calendar extends Vue {
appendTo?: string; appendTo?: string;
inputStyle?: any; inputStyle?: any;
inputClass?: string; inputClass?: string;
}
declare class Calendar {
$props: CalendarProps;
$emit(eventName: 'show'): this; $emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this; $emit(eventName: 'hide'): this;
$emit(eventName: 'month-change', e: { month: number, year: number }): this; $emit(eventName: 'month-change', e: { month: number, year: number }): this;

View File

@ -1,6 +1,9 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Card extends Vue { interface CardProps {}
declare class Card {
$props: CardProps;
$slots: { $slots: {
header: VNode[]; header: VNode[];
title: VNode[]; title: VNode[];

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class Carousel extends Vue { interface CarouselProps {
value?: any; value?: any;
page?: number; page?: number;
numVisible?: number; numVisible?: number;
@ -13,6 +13,10 @@ declare class Carousel extends Vue {
contentClass?: string; contentClass?: string;
circular?: boolean; circular?: boolean;
autoplayInterval?: number; autoplayInterval?: number;
}
declare class Carousel {
$props: CarouselProps;
$slots: { $slots: {
item: VNode[]; item: VNode[];
header: VNode[]; header: VNode[];

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class CascadeSelect extends Vue { interface CascadeSelectProps {
modelValue?: any; modelValue?: any;
options?: any[]; options?: any[];
optionLabel?: string; optionLabel?: string;
@ -14,6 +14,10 @@ declare class CascadeSelect extends Vue {
inputId?: string; inputId?: string;
ariaLabelledBy?: string; ariaLabelledBy?: string;
appendTo?: string; appendTo?: string;
}
declare class CascadeSelect {
$props: CascadeSelectProps;
$emit(eventName: 'update:modelValue', value: string): this; $emit(eventName: 'update:modelValue', value: string): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'change-group', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'change-group', e: { originalEvent: Event, value: any }): this;

View File

@ -1,11 +1,13 @@
import Vue from 'vue'; interface ChartProps {
declare class Chart extends Vue {
type?: string; type?: string;
data?: object; data?: object;
options?: object; options?: object;
width?: number; width?: number;
height?: number; height?: number;
}
declare class Chart {
$props: ChartProps;
$emit(eventName: 'select', e: { originalEvent: Event, element: any, dataset: any }): this; $emit(eventName: 'select', e: { originalEvent: Event, element: any, dataset: any }): this;
refresh(): void; refresh(): void;
reinit(): void; reinit(): void;

View File

@ -1,9 +1,11 @@
import Vue from 'vue'; interface CheckboxProps {
declare class Checkbox extends Vue {
value?: null; value?: null;
modelValue?: null; modelValue?: null;
binary?: boolean; binary?: boolean;
}
declare class Checkbox {
$props: CheckboxProps;
$emit(eventName: string, event: Event): this; $emit(eventName: string, event: Event): this;
} }

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface ChipProps {
declare class Chip extends Vue {
label?: string; label?: string;
icon?: string; icon?: string;
image?: string; image?: string;
@ -8,4 +6,8 @@ declare class Chip extends Vue {
removeIcon?: string; removeIcon?: string;
} }
declare class Chip {
$props: ChipProps;
}
export default Chip; export default Chip;

View File

@ -1,11 +1,15 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Chips extends Vue { interface ChipsProps {
modelValue?: any[]; modelValue?: any[];
max?: number; max?: number;
addOnBlur?: boolean; addOnBlur?: boolean;
allowDuplicate?: boolean; allowDuplicate?: boolean;
separator?: string; separator?: string;
}
declare class Chips {
$props: ChipsProps;
$emit(eventName: 'add', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'add', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'remove', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'remove', e: { originalEvent: Event, value: any }): this;
$slots: { $slots: {

View File

@ -1,6 +1,4 @@
import Vue, { VNode } from 'vue'; interface ColorPickerProps {
declare class ColorPicker extends Vue {
modelValue?: any; modelValue?: any;
defaultColor?: any; defaultColor?: any;
inline?: boolean; inline?: boolean;
@ -10,6 +8,10 @@ declare class ColorPicker extends Vue {
autoZIndex?: boolean; autoZIndex?: boolean;
baseZIndex?: number; baseZIndex?: number;
ariaLabelledBy?: string; ariaLabelledBy?: string;
}
declare class ColorPicker {
$props: ColorPickerProps;
$emit(eventName: 'input', value: any): this; $emit(eventName: 'input', value: any): this;
} }

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface ColumnProps {
declare class Column extends Vue {
columnKey?: any; columnKey?: any;
field?: string; field?: string;
sortField?: string | ((item: any) => any); sortField?: string | ((item: any) => any);
@ -32,4 +30,8 @@ declare class Column extends Vue {
exportable?: boolean; exportable?: boolean;
} }
declare class Column {
$props: ColumnProps;
}
export default Column; export default Column;

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface ColumnGroupProps {
declare class ColumnGroup extends Vue {
type?: string; type?: string;
} }
declare class ColumnGroup {
$props: ColumnGroupProps;
}
export default ColumnGroup; export default ColumnGroup;

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface ConfirmDialogProps {
declare class ConfirmDialog extends Vue {
group?: string; group?: string;
} }
declare class ConfirmDialog {
$props: ConfirmDialogProps;
}
export default ConfirmDialog; export default ConfirmDialog;

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface ConfirmPopupProps {
declare class ConfirmPopup extends Vue {
group?: string; group?: string;
} }
declare class ConfirmPopup {
$props: ConfirmPopupProps;
}
export default ConfirmPopup; export default ConfirmPopup;

View File

@ -1,11 +1,13 @@
import Vue from 'vue'; interface ContextMenuProps {
declare class ContextMenu extends Vue {
model?: any[]; model?: any[];
appendTo?: string; appendTo?: string;
autoZIndex?: boolean; autoZIndex?: boolean;
baseZIndex?: number; baseZIndex?: number;
global?: boolean; global?: boolean;
}
declare class ContextMenu {
$props: ContextMenuProps;
toggle(event: Event): void; toggle(event: Event): void;
show(event: Event, target?: any): void; show(event: Event, target?: any): void;
hide(): void; hide(): void;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class DataTable extends Vue { interface DataTableProps {
value?: any[]; value?: any[];
dataKey?: string; dataKey?: string;
rows?: number; rows?: number;
@ -58,6 +58,10 @@ declare class DataTable extends Vue {
virtualScroll?: boolean; virtualScroll?: boolean;
virtualRowHeight?: string; virtualRowHeight?: string;
virtualScrollDelay?: number; virtualScrollDelay?: number;
}
declare class DataTable {
$props: DataTableProps;
$emit(eventName: 'page', event: Event): this; $emit(eventName: 'page', event: Event): this;
$emit(eventName: 'sort', event: Event): this; $emit(eventName: 'sort', event: Event): this;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class DataView extends Vue { interface DataViewProps {
value?: any[]; value?: any[];
layout?: string; layout?: string;
rows?: number; rows?: number;
@ -16,6 +16,10 @@ declare class DataView extends Vue {
sortField?: string | ((item: any) => any); sortField?: string | ((item: any) => any);
sortOrder?: number; sortOrder?: number;
lazy?: boolean; lazy?: boolean;
}
declare class DataView {
$props: DataViewProps;
$emit(eventName: 'page', event: Event): this; $emit(eventName: 'page', event: Event): this;
$slots: { $slots: {
header: VNode[]; header: VNode[];

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface DataViewLayoutOptionsProps {
declare class DataViewLayoutOptions extends Vue {
value?: string; value?: string;
}
declare class DataViewLayoutOptions {
$props: DataViewLayoutOptionsProps;
$emit(eventName: 'input', layout: string): this; $emit(eventName: 'input', layout: string): this;
} }

View File

@ -1,6 +1,9 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class DeferredContent extends Vue { interface DeferredContentProps {}
declare class DeferredContent {
$props: DeferredContentProps;
$emit(eventName: 'load'): this; $emit(eventName: 'load'): this;
$slots: { $slots: {
'': VNode[]; '': VNode[];

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class Dialog extends Vue { interface DialogProps {
header?: any; header?: any;
footer?: any; footer?: any;
visible?: boolean; visible?: boolean;
@ -16,6 +16,10 @@ declare class Dialog extends Vue {
ariaCloseLabel?: string; ariaCloseLabel?: string;
position?: string; position?: string;
maximizable?: boolean; maximizable?: boolean;
}
declare class Dialog {
$props: DialogProps;
$emit(eventName: 'show'): this; $emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this; $emit(eventName: 'hide'): this;
$slots: { $slots: {

View File

@ -1,9 +1,11 @@
import Vue from 'vue'; interface DividerProps {
declare class Divider extends Vue {
align?: string; align?: string;
layout?: string; layout?: string;
type?: string; type?: string;
} }
declare class Divider {
$props: DividerProps;
}
export default Divider; export default Divider;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Dropdown extends Vue { interface DropdownProps {
modelValue?: any; modelValue?: any;
options?: any[]; options?: any[];
optionLabel?: string; optionLabel?: string;
@ -20,6 +20,10 @@ declare class Dropdown extends Vue {
ariaLabelledBy?: string; ariaLabelledBy?: string;
appendTo?: string; appendTo?: string;
emptyFilterMessage?: string; emptyFilterMessage?: string;
}
declare class Dropdown {
$props: DropdownProps;
$emit(eventName: 'input', value: string): this; $emit(eventName: 'input', value: string): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: string }): this; $emit(eventName: 'change', e: { originalEvent: Event, value: string }): this;
$emit(eventName: 'before-show'): this; $emit(eventName: 'before-show'): this;

View File

@ -1,11 +1,15 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Editor extends Vue { interface EditorProps {
modelValue?: string; modelValue?: string;
placeholder?: string; placeholder?: string;
readonly?: boolean; readonly?: boolean;
formats?: any[]; formats?: any[];
editorStyle?: string; editorStyle?: string;
}
declare class Editor {
$props: EditorProps;
$emit(eventName: 'input', event: string): this; $emit(eventName: 'input', event: string): this;
$emit(eventName: 'text-change', e: { htmlValue: string, textValue: any, delta: any, source: string}): this; $emit(eventName: 'text-change', e: { htmlValue: string, textValue: any, delta: any, source: string}): this;
$slot: { $slot: {

View File

@ -1,9 +1,13 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Fieldset extends Vue { interface FieldsetProps {
legend?: string; legend?: string;
toggleable?: boolean; toggleable?: boolean;
collapsed?: boolean; collapsed?: boolean;
}
declare class Fieldset {
$props: FieldsetProps;
$emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean }): this; $emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean }): this;
$slots: { $slots: {
'': VNode[]; '': VNode[];

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface FileUploadProps {
declare class FileUpload extends Vue {
name?: string; name?: string;
url?: string; url?: string;
mode?: string; mode?: string;
@ -20,6 +18,10 @@ declare class FileUpload extends Vue {
customUpload?: boolean; customUpload?: boolean;
showUploadButton?: boolean; showUploadButton?: boolean;
showCancelButton?: boolean; showCancelButton?: boolean;
}
declare class FileUpload {
$props: FileUploadProps;
$emit(eventName: 'select', e: { originalEvent: Event, files: any }): this; $emit(eventName: 'select', e: { originalEvent: Event, files: any }): this;
$emit(eventName: 'before-upload', e: { xhr: XMLHttpRequest, formData: any }): this; $emit(eventName: 'before-upload', e: { xhr: XMLHttpRequest, formData: any }): this;
$emit(eventName: 'progress', e: { originalEvent: Event, progress: any }): this; $emit(eventName: 'progress', e: { originalEvent: Event, progress: any }): this;

View File

@ -1,8 +1,10 @@
import Vue from 'vue'; interface FullCalendarProps {
declare class FullCalendar extends Vue {
events?: any[]; events?: any[];
options?: object; options?: object;
} }
declare class FullCalendar {
$props: FullCalendarProps;
}
export default FullCalendar; export default FullCalendar;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class Galleria extends Vue { interface GalleriaProps {
id?: string; id?: string;
value?: any; value?: any;
activeIndex?: number; activeIndex?: number;
@ -25,6 +25,10 @@ declare class Galleria extends Vue {
maskClass?: string; maskClass?: string;
containerStyle?: string; containerStyle?: string;
containerClass?: string; containerClass?: string;
}
declare class Galleria {
$props: GalleriaProps;
$slots: { $slots: {
header: VNode[]; header: VNode[];
footer: VNode[]; footer: VNode[];

View File

@ -1,7 +1,11 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class InlineMessage extends Vue { interface InlineMessageProps {
severity?: string; severity?: string;
}
declare class InlineMessage {
$props: InlineMessageProps;
$slots: { $slots: {
'': VNode[]; '': VNode[];
} }

View File

@ -1,8 +1,12 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class Inplace extends Vue { interface InplaceProps {
closable?: boolean; closable?: boolean;
active?: boolean; active?: boolean;
}
declare class Inplace {
$props: InplaceProps;
$slots: { $slots: {
display: VNode[]; display: VNode[];
content: VNode[]; content: VNode[];

View File

@ -1,11 +1,13 @@
import Vue, { VNode } from 'vue'; interface InputMaskProps {
declare class InputMask extends Vue {
modelValue?: string; modelValue?: string;
slotChar?: string; slotChar?: string;
mask?: string; mask?: string;
autoClear?: boolean; autoClear?: boolean;
unmask?: boolean; unmask?: boolean;
}
declare class InputMask {
$props: InputMaskProps;
$emit(eventName: 'input', value: string): this; $emit(eventName: 'input', value: string): this;
$emit(eventName: 'focus', event: Event): this; $emit(eventName: 'focus', event: Event): this;
$emit(eventName: 'blur', event: Event): this; $emit(eventName: 'blur', event: Event): this;

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface InputNumberProps {
declare class InputNumber extends Vue {
modelValue?: number; modelValue?: number;
format?: boolean; format?: boolean;
showButtons?: boolean; showButtons?: boolean;
@ -24,6 +22,10 @@ declare class InputNumber extends Vue {
step?: number; step?: number;
inputStyle?: any; inputStyle?: any;
inputClass?: string; inputClass?: string;
}
declare class InputNumber {
$props: InputNumberProps;
$emit(eventName: string, value: number | Event): this; $emit(eventName: string, value: number | Event): this;
$emit(eventName: 'input', e: {originalEvent: Event, value: any}): this; $emit(eventName: 'input', e: {originalEvent: Event, value: any}): this;
} }

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface InputSwitchProps {
declare class InputSwitch extends Vue {
modelValue?: boolean; modelValue?: boolean;
} }
declare class InputSwitch {
$props: InputSwitchProps;
}
export default InputSwitch; export default InputSwitch;

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface InputTextProps {
declare class InputText extends Vue {
value?: string; value?: string;
}
declare class InputText {
$props: InputTextProps;
$emit(eventName: 'input', value: string): this; $emit(eventName: 'input', value: string): this;
} }

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface KnobProps {
declare class Knob extends Vue {
modelValue?: number; modelValue?: number;
size?: number; size?: number;
disabled?: boolean; disabled?: boolean;
@ -14,6 +12,10 @@ declare class Knob extends Vue {
strokeWidth?: number; strokeWidth?: number;
showValue?: boolean; showValue?: boolean;
valueTemplate?: string; valueTemplate?: string;
}
declare class Knob {
$props: KnobProps;
$emit(eventName: 'change', value: any): this; $emit(eventName: 'change', value: any): this;
} }

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Listbox extends Vue { interface ListboxProps {
modelValue?: any; modelValue?: any;
options?: any[]; options?: any[];
optionLabel?: string; optionLabel?: string;
@ -16,6 +16,10 @@ declare class Listbox extends Vue {
filterLocale?: string; filterLocale?: string;
ariaLabelledBy?: string; ariaLabelledBy?: string;
emptyFilterMessage?: string; emptyFilterMessage?: string;
}
declare class Listbox {
$props: ListboxProps;
$emit(eventName: 'input', value: any): this; $emit(eventName: 'input', value: any): this;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
$emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this; $emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this;

View File

@ -1,8 +1,10 @@
import Vue from 'vue'; interface MegaMenuProps {
declare class MegaMenu extends Vue {
model?: any[]; model?: any[];
orientation?: string; orientation?: string;
} }
declare class MegaMenu {
$props: MegaMenuProps;
}
export default MegaMenu; export default MegaMenu;

View File

@ -1,11 +1,13 @@
import Vue from 'vue'; interface MenuProps {
declare class Menu extends Vue {
popup?: boolean; popup?: boolean;
model?: any[]; model?: any[];
appendTo?: string; appendTo?: string;
autoZIndex?: boolean; autoZIndex?: boolean;
baseZIndex?: number; baseZIndex?: number;
}
declare class Menu {
$props: MenuProps;
toggle(event: Event): void; toggle(event: Event): void;
show(event: Event, target?: any): void; show(event: Event, target?: any): void;
hide(): void; hide(): void;

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface MenubarProps {
declare class Menubar extends Vue {
model?: any[]; model?: any[];
} }
declare class Menubar {
$props: MenubarProps;
}
export default Menubar; export default Menubar;

View File

@ -1,10 +1,14 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Message extends Vue { interface MessageProps {
severity?: string; severity?: string;
closable?: boolean; closable?: boolean;
sticky?: boolean; sticky?: boolean;
life?: number; life?: number;
}
declare class Message {
$props: MessageProps;
$slots: { $slots: {
'': VNode[]; '': VNode[];
} }

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class MultiSelect extends Vue { interface MultiSelectProps {
modelValue?: any; modelValue?: any;
options?: any[]; options?: any[];
optionLabel?: string; optionLabel?: string;
@ -19,6 +19,10 @@ declare class MultiSelect extends Vue {
appendTo?: string; appendTo?: string;
emptyFilterMessage?: string; emptyFilterMessage?: string;
display?: string; display?: string;
}
declare class MultiSelect {
$props: MultiSelectProps;
$emit(eventName: 'input', value: any): this; $emit(eventName: 'input', value: any): this;
$emit(eventName: 'change', e: {originalEvent: Event, value: any}): this; $emit(eventName: 'change', e: {originalEvent: Event, value: any}): this;
$emit(eventName: 'before-show'): this; $emit(eventName: 'before-show'): this;

View File

@ -1,11 +1,15 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class OrderList extends Vue { interface OrderListProps {
modelValue?: any[]; modelValue?: any[];
dataKey?: string; dataKey?: string;
selection?: any[]; selection?: any[];
metaKeySelection?: boolean; metaKeySelection?: boolean;
listStyle?: any; listStyle?: any;
}
declare class OrderList {
$props: OrderListProps;
$emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this; $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this;
$slots: { $slots: {
header: VNode[]; header: VNode[];

View File

@ -1,11 +1,15 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class OrganizationChart extends Vue { interface OrganizationChartProps {
value?: any; value?: any;
selectionKeys?: any; selectionKeys?: any;
selectionMode?: string; selectionMode?: string;
collapsedKeys?: any; collapsedKeys?: any;
collapsible?: boolean; collapsible?: boolean;
}
declare class OrganizationChart {
$props: OrganizationChartProps;
$emit(eventName: 'node-select', node: any): this; $emit(eventName: 'node-select', node: any): this;
$emit(eventName: 'node-unselect', node: any): this; $emit(eventName: 'node-unselect', node: any): this;
$emit(eventName: 'node-expand', node: any): this; $emit(eventName: 'node-expand', node: any): this;

View File

@ -1,12 +1,16 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class OverlayPanel extends Vue { interface OverlayPanelProps {
ismissable?: boolean; ismissable?: boolean;
showCloseIcon?: boolean; showCloseIcon?: boolean;
appendTo?: string; appendTo?: string;
baseZIndex?: number; baseZIndex?: number;
autoZIndex?: boolean; autoZIndex?: boolean;
ariaCloseLabel?: string; ariaCloseLabel?: string;
}
declare class OverlayPanel {
$props: OverlayPanelProps;
toggle(event: Event): void; toggle(event: Event): void;
show(event: Event, target?: any): void; show(event: Event, target?: any): void;
hide(): void; hide(): void;

View File

@ -1,4 +1,4 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
export interface PageState { export interface PageState {
first: number, first: number,
@ -7,7 +7,7 @@ export interface PageState {
pageCount: number pageCount: number
} }
declare class Paginator extends Vue { interface PaginatorProps {
totalRecords?: number; totalRecords?: number;
rows?: number; rows?: number;
first?: number; first?: number;
@ -16,6 +16,10 @@ declare class Paginator extends Vue {
template?: string; template?: string;
currentPageReportTemplate?: any; currentPageReportTemplate?: any;
alwaysShow?: boolean; alwaysShow?: boolean;
}
declare class Paginator {
$props: PaginatorProps;
$emit(eventName: 'page', event: PageState): this; $emit(eventName: 'page', event: PageState): this;
$slots: { $slots: {
left: VNode[]; left: VNode[];

View File

@ -1,9 +1,13 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class Panel extends Vue { interface PanelProps {
header?: string; header?: string;
toggleable?: boolean; toggleable?: boolean;
collapsed?: boolean; collapsed?: boolean;
}
declare class Panel {
$props: PanelProps;
$emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean; }): this; $emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean; }): this;
$slots: { $slots: {
'': VNode[]; '': VNode[];

View File

@ -1,7 +1,9 @@
import Vue from 'vue'; interface PanelMenuProps {
declare class PanelMenu extends Vue {
model?: any[]; model?: any[];
} }
declare class PanelMenu {
$props: PanelMenuProps;
}
export default PanelMenu; export default PanelMenu;

View File

@ -1,6 +1,4 @@
import Vue from 'vue'; interface PasswordProps {
declare class Password extends Vue {
modelValue?: string; modelValue?: string;
promptLabel?: string; promptLabel?: string;
mediumRegex?: string; mediumRegex?: string;
@ -13,6 +11,10 @@ declare class Password extends Vue {
toggleMask?: boolean; toggleMask?: boolean;
inputStyle?: any; inputStyle?: any;
inputClass?: string; inputClass?: string;
}
declare class Password {
$props: PasswordProps;
$emit(eventName: string, event: Event): this; $emit(eventName: string, event: Event): this;
} }

View File

@ -1,11 +1,15 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class PickList extends Vue { interface PickListProps {
modelValue?: any[][]; modelValue?: any[][];
selection?: any[][]; selection?: any[][];
dataKey?: string; dataKey?: string;
metaKeySelection?: boolean; metaKeySelection?: boolean;
listStyle?: any; listStyle?: any;
}
declare class PickList {
$props: PickListProps;
$emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this; $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this;
$emit(eventName: 'move-to-target', e: { originalEvent: Event, items: [] }): this; $emit(eventName: 'move-to-target', e: { originalEvent: Event, items: [] }): this;
$emit(eventName: 'move-all-to-target', e: { originalEvent: Event, items: [] }): this; $emit(eventName: 'move-all-to-target', e: { originalEvent: Event, items: [] }): this;

View File

@ -1,9 +1,11 @@
import Vue from 'vue'; interface ProgressBarProps {
declare class ProgressBar extends Vue {
value?: number; value?: number;
mode?: string; mode?: string;
showValue?: boolean; showValue?: boolean;
} }
declare class ProgressBar {
$props: ProgressBarProps;
}
export default ProgressBar; export default ProgressBar;

View File

@ -1,9 +1,11 @@
import Vue from 'vue'; interface ProgressSpinnerProps {
declare class ProgressSpinner extends Vue {
strokeWidth?: string; strokeWidth?: string;
fill?: string; fill?: string;
animationDuration?: string; animationDuration?: string;
} }
declare class ProgressSpinner {
$props: ProgressSpinnerProps;
}
export default ProgressSpinner; export default ProgressSpinner;

View File

@ -1,8 +1,10 @@
import Vue from 'vue'; interface RadioButtonProps {
declare class RadioButton extends Vue {
value?: any; value?: any;
modelValue?: any; modelValue?: any;
}
declare class RadioButton {
$props: RadioButtonProps;
$emit(eventName: string, event: Event): this; $emit(eventName: string, event: Event): this;
} }

View File

@ -1,11 +1,13 @@
import Vue from 'vue'; interface RatingProps {
declare class Rating extends Vue {
modelValue?: number; modelValue?: number;
disabled?: boolean; disabled?: boolean;
readonly?: boolean; readonly?: boolean;
stars?: number; stars?: number;
cancel?: boolean; cancel?: boolean;
}
declare class Rating {
$props: RatingProps;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
} }

View File

@ -1,5 +1,7 @@
import Vue from 'vue'; interface RowProps {}
declare class Row extends Vue {} declare class Row {
$props: RowProps;
}
export default Row; export default Row;

View File

@ -1,6 +1,9 @@
import Vue, {VNode} from 'vue'; import { VNode } from 'vue';
declare class ScrollPanel extends Vue { interface ScrollPanelProps {}
declare class ScrollPanel {
$props: ScrollPanelProps;
$slots: { $slots: {
'': VNode[]; '': VNode[];
} }

View File

@ -1,10 +1,12 @@
import Vue from 'vue'; interface ScrollToProps {
declare class ScrollTo extends Vue {
target?: string; target?: string;
threshold?: number; threshold?: number;
icon?: boolean; icon?: boolean;
behavior?: boolean; behavior?: boolean;
} }
declare class ScrollTo {
$props: ScrollToProps;
}
export default ScrollTo; export default ScrollTo;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class SelectButton extends Vue { interface SelectButtonProps {
modelValue?: any; modelValue?: any;
options?: any[]; options?: any[];
optionLabel?: string; optionLabel?: string;
@ -10,6 +10,10 @@ declare class SelectButton extends Vue {
disabled?: boolean; disabled?: boolean;
dataKey?: string; dataKey?: string;
ariaLabelledBy?: string; ariaLabelledBy?: string;
}
declare class SelectButton {
$props: SelectButtonProps;
$emit(eventName: 'focus', event: Event): this; $emit(eventName: 'focus', event: Event): this;
$emit(eventName: 'blur', event: Event): this; $emit(eventName: 'blur', event: Event): this;
$slots: { $slots: {

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue'; import { VNode } from 'vue';
declare class Sidebar extends Vue { interface SidebarProps {
visible?: boolean; visible?: boolean;
position?: string; position?: string;
baseZIndex?: number; baseZIndex?: number;
@ -9,6 +9,10 @@ declare class Sidebar extends Vue {
showCloseIcon?: boolean; showCloseIcon?: boolean;
modal?: boolean; modal?: boolean;
ariaCloseLabel?: string; ariaCloseLabel?: string;
}
declare class Sidebar {
$props: SidebarProps;
$emit(eventName: 'show'): this; $emit(eventName: 'show'): this;
$emit(eventName: 'hide'): this; $emit(eventName: 'hide'): this;
$slots: { $slots: {