Fixed #595 - Typescript definitions improvement

pull/682/head
Cagatay Civici 2020-11-26 11:20:37 +03:00
parent 9aa51b2877
commit 1d72c920a1
75 changed files with 287 additions and 138 deletions

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Accordion extends Vue {
declare class Accordion extends Vue {
multiple?: boolean;
$emit(eventName: 'tab-open', e: {originalEvent: Event, tab: any}): this;
$emit(eventName: 'tab-close', e: {originalEvent: Event, tab: any}): this;
@ -8,3 +8,5 @@ export declare class Accordion extends Vue {
'': VNode[];
}
}
export default Accordion;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class AccordionTab extends Vue {
declare class AccordionTab extends Vue {
header?: string;
active?: boolean;
disabled?: boolean;
@ -9,3 +9,5 @@ export declare class AccordionTab extends Vue {
header: VNode[];
}
}
export default AccordionTab;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class AutoComplete extends Vue {
declare class AutoComplete extends Vue {
modelValue?: any;
suggestions?: any[];
field?: string;
@ -20,3 +20,5 @@ export declare class AutoComplete extends Vue {
list: VNode[];
};
}
export default AutoComplete;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class BlockUI extends Vue {
declare class BlockUI extends Vue {
blocked?: boolean;
fullScreen?: boolean;
baseZIndex?: number;
@ -11,3 +11,5 @@ export declare class BlockUI extends Vue {
'': VNode[];
}
}
export default BlockUI;

View File

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

View File

@ -1,9 +1,11 @@
import Vue from 'vue';
export declare class Button extends Vue {
declare class Button extends Vue {
label?: string;
icon?: string;
iconPos?: string;
badge?: string;
badgeClass?: string;
}
export default Button;

View File

@ -13,7 +13,7 @@ export interface LocaleSettings {
weekHeader?: string;
}
export declare class Calendar extends Vue {
declare class Calendar extends Vue {
modelValue?: Date | Date[];
selectionMode?: string;
dateFormat?: string;
@ -66,3 +66,5 @@ export declare class Calendar extends Vue {
footer: VNode[];
};
}
export default Calendar;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Card extends Vue {
declare class Card extends Vue {
$slots: {
header: VNode[];
title: VNode[];
@ -9,3 +9,5 @@ export declare class Card extends Vue {
footer: VNode[];
}
}
export default Card;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class Carousel extends Vue {
declare class Carousel extends Vue {
value?: any;
page?: number;
numVisible?: number;
@ -19,3 +19,5 @@ export declare class Carousel extends Vue {
footer: VNode[];
}
}
export default Carousel;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class Chart extends Vue {
declare class Chart extends Vue {
type?: string;
data?: object;
options?: object;
@ -11,3 +11,5 @@ export declare class Chart extends Vue {
reinit(): void;
generateLegend(): void | any;
}
export default Chart;

View File

@ -1,8 +1,10 @@
import Vue from 'vue';
export declare class Checkbox extends Vue {
declare class Checkbox extends Vue {
value?: null;
modelValue?: null;
binary?: boolean;
$emit(eventName: string, event: Event): this;
}
export default Checkbox;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Chips extends Vue {
declare class Chips extends Vue {
modelValue?: any[];
max?: number;
addOnBlur?: boolean;
@ -12,3 +12,5 @@ export declare class Chips extends Vue {
chip: VNode[];
}
}
export default Chips;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class ColorPicker extends Vue {
declare class ColorPicker extends Vue {
modelValue?: any;
defaultColor?: any;
inline?: boolean;
@ -12,3 +12,5 @@ export declare class ColorPicker extends Vue {
ariaLabelledBy?: string;
$emit(eventName: 'input', value: any): this;
}
export default ColorPicker;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class Column extends Vue {
declare class Column extends Vue {
columnKey?: any;
field?: string;
sortField?: string;
@ -29,3 +29,5 @@ export declare class Column extends Vue {
rowEditor?: boolean;
frozen?: boolean;
}
export default Column;

View File

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

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class ContextMenu extends Vue {
declare class ContextMenu extends Vue {
model?: any[];
appendTo?: string;
autoZIndex?: boolean;
@ -10,3 +10,5 @@ export declare class ContextMenu extends Vue {
show(event: Event, target?: any): void;
hide(): void;
}
export default ContextMenu;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class DataTable extends Vue {
declare class DataTable extends Vue {
value?: any[];
dataKey?: string;
rows?: number;
@ -86,3 +86,5 @@ export declare class DataTable extends Vue {
footer: VNode[];
}
}
export default DataTable;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class DataView extends Vue {
declare class DataView extends Vue {
value?: any[];
layout?: string;
rows?: number;
@ -26,3 +26,5 @@ export declare class DataView extends Vue {
footer: VNode[];
}
}
export default DataView;

View File

@ -1,6 +1,8 @@
import Vue from 'vue';
export declare class DataViewLayoutOptions extends Vue {
declare class DataViewLayoutOptions extends Vue {
value?: string;
$emit(eventName: 'input', layout: string): this;
}
export default DataViewLayoutOptions;

View File

@ -1,8 +1,10 @@
import Vue, {VNode} from 'vue';
export declare class DeferredContent extends Vue {
declare class DeferredContent extends Vue {
$emit(eventName: 'load'): this;
$slots: {
'': VNode[];
}
}
export default DeferredContent;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class Dialog extends Vue {
declare class Dialog extends Vue {
header?: any;
footer?: any;
visible?: boolean;
@ -24,3 +24,5 @@ export declare class Dialog extends Vue {
footer: VNode[];
}
}
export default Dialog;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Dropdown extends Vue {
declare class Dropdown extends Vue {
modelValue?: any;
options?: any[];
optionLabel?: string;
@ -31,3 +31,5 @@ export declare class Dropdown extends Vue {
option: VNode[];
}
}
export default Dropdown;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Editor extends Vue {
declare class Editor extends Vue {
modelValue?: string;
placeholder?: string;
readonly?: boolean;
@ -12,3 +12,5 @@ export declare class Editor extends Vue {
toolbar: VNode[];
}
}
export default Editor;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Fieldset extends Vue {
declare class Fieldset extends Vue {
legend?: string;
toggleable?: boolean;
collapsed?: boolean;
@ -10,3 +10,5 @@ export declare class Fieldset extends Vue {
legend: VNode[];
}
}
export default Fieldset;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class FileUpload extends Vue {
declare class FileUpload extends Vue {
name?: string;
url?: string;
mode?: string;
@ -26,3 +26,5 @@ export declare class FileUpload extends Vue {
$emit(eventName: 'before-send', e: { xhr: XMLHttpRequest, formData: any }): this;
$emit(eventName: 'clear'): this;
}
export default FileUpload;

View File

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

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class Galleria extends Vue {
declare class Galleria extends Vue {
id?: string;
value?: any;
activeIndex?: number;
@ -34,3 +34,5 @@ export declare class Galleria extends Vue {
thumbnail: VNode[];
}
}
export default Galleria;

View File

@ -1,8 +1,10 @@
import Vue, { VNode } from 'vue';
export declare class InlineMessage extends Vue {
declare class InlineMessage extends Vue {
severity?: string;
$slots: {
'': VNode[];
}
}
export default InlineMessage;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class Inplace extends Vue {
declare class Inplace extends Vue {
closable?: boolean;
active?: boolean;
$slots: {
@ -8,3 +8,5 @@ export declare class Inplace extends Vue {
content: VNode[];
}
}
export default Inplace;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class InputMask extends Vue {
declare class InputMask extends Vue {
modelValue?: string;
slotChar?: string;
mask?: string;
@ -14,3 +14,5 @@ export declare class InputMask extends Vue {
$emit(eventName: 'paste', event: Event): this;
$emit(eventName: 'complete', event: Event): this;
}
export default InputMask;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class InputNumber extends Vue {
declare class InputNumber extends Vue {
modelValue?: number;
format?: boolean;
showButtons?: boolean;
@ -27,3 +27,5 @@ export declare class InputNumber extends Vue {
$emit(eventName: string, value: number | Event): this;
$emit(eventName: 'input', e: {originalEvent: Event, value: any}): this;
}
export default InputNumber;

View File

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

View File

@ -1,6 +1,8 @@
import Vue from 'vue';
export declare class InputText extends Vue {
declare class InputText extends Vue {
value?: string;
$emit(eventName: 'input', value: string): this;
}
export default InputText;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Listbox extends Vue {
declare class Listbox extends Vue {
modelValue?: any;
options?: any[];
optionLabel?: string;
@ -23,3 +23,5 @@ export declare class Listbox extends Vue {
option: VNode[];
}
}
export default Listbox;

View File

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

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class Menu extends Vue {
declare class Menu extends Vue {
popup?: boolean;
model?: any[];
appendTo?: string;
@ -10,3 +10,5 @@ export declare class Menu extends Vue {
show(event: Event, target?: any): void;
hide(): void;
}
export default Menu;

View File

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

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Message extends Vue {
declare class Message extends Vue {
severity?: string;
closable?: boolean;
sticky?: boolean;
@ -9,3 +9,5 @@ export declare class Message extends Vue {
'': VNode[];
}
}
export default Message;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class MultiSelect extends Vue {
declare class MultiSelect extends Vue {
modelValue?: any;
options?: any[];
optionLabel?: string;
@ -30,3 +30,5 @@ export declare class MultiSelect extends Vue {
option: VNode[];
}
}
export default MultiSelect;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class OrderList extends Vue {
declare class OrderList extends Vue {
modelValue?: any[];
dataKey?: string;
selection?: any[];
@ -12,3 +12,5 @@ export declare class OrderList extends Vue {
item: VNode[];
}
}
export default OrderList;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class OrganizationChart extends Vue {
declare class OrganizationChart extends Vue {
value?: any;
selectionKeys?: any;
selectionMode?: string;
@ -14,3 +14,5 @@ export declare class OrganizationChart extends Vue {
[key: string]: VNode[];
}
}
export default OrganizationChart;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class OverlayPanel extends Vue {
declare class OverlayPanel extends Vue {
ismissable?: boolean;
showCloseIcon?: boolean;
appendTo?: string;
@ -14,3 +14,5 @@ export declare class OverlayPanel extends Vue {
'': VNode[];
}
}
export default OverlayPanel;

View File

@ -7,7 +7,7 @@ export interface PageState {
pageCount: number
}
export declare class Paginator extends Vue {
declare class Paginator extends Vue {
totalRecords?: number;
rows?: number;
first?: number;
@ -22,3 +22,5 @@ export declare class Paginator extends Vue {
right: VNode[];
}
}
export default Paginator;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class Panel extends Vue {
declare class Panel extends Vue {
header?: string;
toggleable?: boolean;
collapsed?: boolean;
@ -10,3 +10,5 @@ export declare class Panel extends Vue {
header: VNode[];
}
}
export default Panel;

View File

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

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class Password extends Vue {
declare class Password extends Vue {
modelValue?: string;
promptLabel?: string;
mediumRegex?: string;
@ -11,3 +11,5 @@ export declare class Password extends Vue {
feedback?: boolean;
$emit(eventName: string, event: Event): this;
}
export default Password;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class PickList extends Vue {
declare class PickList extends Vue {
modelValue?: any[][];
selection?: any[][];
dataKey?: string;
@ -16,3 +16,5 @@ export declare class PickList extends Vue {
item: VNode[];
}
}
export default PickList;

View File

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

View File

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

View File

@ -1,7 +1,9 @@
import Vue from 'vue';
export declare class RadioButton extends Vue {
declare class RadioButton extends Vue {
value?: any;
modelValue?: any;
$emit(eventName: string, event: Event): this;
}
export default RadioButton;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class Rating extends Vue {
declare class Rating extends Vue {
modelValue?: number;
disabled?: boolean;
readonly?: boolean;
@ -8,3 +8,5 @@ export declare class Rating extends Vue {
cancel?: boolean;
$emit(eventName: 'change', e: { originalEvent: Event, value: any }): this;
}
export default Rating;

View File

@ -1,3 +1,5 @@
import Directive from 'vue';
export declare interface Ripple extends Directive {}
declare interface Ripple extends Directive {}
export default Ripple;

View File

@ -1,3 +1,5 @@
import Vue from 'vue';
export declare class Row extends Vue {}
declare class Row extends Vue {}
export default Row;

View File

@ -1,7 +1,9 @@
import Vue, {VNode} from 'vue';
export declare class ScrollPanel extends Vue {
declare class ScrollPanel extends Vue {
$slots: {
'': VNode[];
}
}
export default ScrollPanel;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class SelectButton extends Vue {
declare class SelectButton extends Vue {
modelValue?: any;
options?: any[];
optionLabel?: string;
@ -16,3 +16,5 @@ export declare class SelectButton extends Vue {
option: VNode[];
}
}
export default SelectButton;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Sidebar extends Vue {
declare class Sidebar extends Vue {
visible?: boolean;
position?: string;
baseZIndex?: number;
@ -15,3 +15,5 @@ export declare class Sidebar extends Vue {
'': VNode[];
}
}
export default Sidebar;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class Slider extends Vue {
declare class Slider extends Vue {
modelValue?: number | any[];
min?: number;
max?: number;
@ -12,3 +12,5 @@ export declare class Slider extends Vue {
$emit(eventName: 'change', value: any): this;
$emit(eventName: 'slideend', e: {originalEvent: Event, values: any}): this;
}
export default Slider;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class SplitButton extends Vue {
declare class SplitButton extends Vue {
label?: string;
icon?: string;
model?: any[];
@ -11,3 +11,5 @@ export declare class SplitButton extends Vue {
appendTo?: string;
$emit(eventName: 'click', event: Event): this;
}
export default SplitButton;

View File

@ -1,6 +1,8 @@
import Vue from 'vue';
export declare class Steps extends Vue {
declare class Steps extends Vue {
model?: any[];
readonly?: boolean;
}
export default Steps;

View File

@ -1,5 +1,7 @@
import Vue from 'vue';
export declare class TabMenu extends Vue {
declare class TabMenu extends Vue {
model?: any[];
}
export default TabMenu;

View File

@ -1,9 +1,11 @@
import Vue, { VNode } from 'vue';
export declare class TabPanel extends Vue {
declare class TabPanel extends Vue {
header?: any;
disabled?: boolean;
$slots: {
'': VNode[];
}
}
export default TabPanel;

View File

@ -1,9 +1,11 @@
import Vue, { VNode } from 'vue';
export declare class TabView extends Vue {
declare class TabView extends Vue {
activeIndex?: number;
$emit(eventName: 'tab-change', e: { originalEvent: Event, tab: any }): this;
$slots: {
'': VNode[];
}
}
export default TabView;

View File

@ -1,6 +1,8 @@
import Vue from 'vue';
export declare class Terminal extends Vue {
declare class Terminal extends Vue {
welcomeMessage?: string;
prompt?: string;
}
export default Terminal;

View File

@ -1,6 +1,8 @@
export declare class TerminalService {
declare class TerminalService {
$on(action: string, fn: any): any;
$emit(action: string, params?: any): any;
$off(action: string, id: number): void;
$subscribed(action: string): boolean;
}
export default TerminalService;

View File

@ -1,7 +1,9 @@
import Vue from 'vue';
export declare class Textarea extends Vue {
declare class Textarea extends Vue {
value?: string;
autoResize?: boolean;
$emit(eventName: 'input', value: string): this;
}
export default Textarea;

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class TieredMenu extends Vue {
declare class TieredMenu extends Vue {
popup?: boolean;
model?: any[];
appendTo?: string;
@ -10,3 +10,5 @@ export declare class TieredMenu extends Vue {
show(event: Event, target?: any): void;
hide(): void;
}
export default TieredMenu;

View File

@ -1,6 +1,6 @@
import Vue, { VNode } from 'vue';
export declare class Timeline extends Vue {
declare class Timeline extends Vue {
value?: any[];
align?: string;
layout?: string;
@ -11,3 +11,5 @@ export declare class Timeline extends Vue {
marker: VNode[];
}
}
export default Timeline;

View File

@ -1,6 +1,8 @@
import Vue from 'vue';
export declare class Toast extends Vue {
declare class Toast extends Vue {
group?: string;
position?: string;
}
export default Toast;

View File

@ -13,3 +13,4 @@ declare module 'vue/types/vue' {
$toast: ToastServiceMethods;
}
}

View File

@ -1,6 +1,6 @@
import Vue from 'vue';
export declare class ToggleButton extends Vue {
declare class ToggleButton extends Vue {
value?: boolean;
onIcon?: string;
offIcon?: string;
@ -9,3 +9,5 @@ export declare class ToggleButton extends Vue {
iconPos?: string;
$emit(eventName: string, event: Event): this;
}
export default ToggleButton;

View File

@ -1,8 +1,10 @@
import Vue, { VNode } from 'vue';
export declare class Toolbar extends Vue {
declare class Toolbar extends Vue {
$slots: {
left: VNode[];
right: VNode[];
}
}
export default Toolbar;

View File

@ -1,3 +1,5 @@
import Directive from 'vue';
export declare interface Tooltip extends Directive {}
declare interface Tooltip extends Directive {}
export default Tooltip;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class Tree extends Vue {
declare class Tree extends Vue {
value?: any;
expandedKeys?: any;
selectionKeys?: any;
@ -21,3 +21,5 @@ export declare class Tree extends Vue {
[key: string]: VNode[];
}
}
export default Tree;

View File

@ -1,6 +1,6 @@
import Vue, {VNode} from 'vue';
export declare class TreeTable extends Vue {
declare class TreeTable extends Vue {
value?: any;
expandedKeys?: any;
selectionKeys?: any;
@ -51,3 +51,5 @@ export declare class TreeTable extends Vue {
footer: VNode[];
}
}
export default TreeTable;

View File

@ -1,6 +1,8 @@
import Vue from 'vue';
export declare class TriStateCheckbox extends Vue {
declare class TriStateCheckbox extends Vue {
modelValue?: any;
$emit(eventName: string, event: Event): this;
}
export default TriStateCheckbox;