From 4d1891b47cceb563c8b55b05968f5dc973b1497e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 14 Jun 2021 17:05:02 +0300 Subject: [PATCH] update .d.ts files --- src/components/accordion/Accordion.d.ts | 1 + src/components/accordiontab/AccordionTab.d.ts | 1 - src/components/autocomplete/AutoComplete.d.ts | 3 ++ src/components/avatar/Avatar.d.ts | 2 ++ src/components/calendar/Calendar.d.ts | 3 ++ src/components/carousel/Carousel.d.ts | 3 +- .../cascadeselect/CascadeSelect.d.ts | 3 +- src/components/checkbox/Checkbox.d.ts | 6 +++- src/components/chip/Chip.d.ts | 1 + src/components/chips/Chips.d.ts | 3 ++ src/components/colorpicker/ColorPicker.d.ts | 2 +- src/components/column/Column.d.ts | 13 +++++++ src/components/contextmenu/ContextMenu.d.ts | 5 +++ src/components/datatable/DataTable.d.ts | 35 +++++++++++++++---- src/components/dataview/DataView.d.ts | 3 ++ .../DataViewLayoutOptions.d.ts | 4 +-- src/components/dialog/Dialog.d.ts | 7 ++-- src/components/divider/Divider.d.ts | 5 +++ src/components/dropdown/Dropdown.d.ts | 8 ++++- src/components/editor/Editor.d.ts | 2 +- src/components/fieldset/Fieldset.d.ts | 1 + src/components/fileupload/FileUpload.d.ts | 5 +-- src/components/galleria/Galleria.d.ts | 2 ++ src/components/inplace/Inplace.d.ts | 3 ++ src/components/inputmask/InputMask.d.ts | 2 +- src/components/inputnumber/InputNumber.d.ts | 4 ++- src/components/inputswitch/InputSwitch.d.ts | 5 +++ src/components/inputtext/InputText.d.ts | 4 +-- src/components/knob/Knob.d.ts | 1 + src/components/listbox/Listbox.d.ts | 8 +++-- src/components/megamenu/MegaMenu.d.ts | 6 ++++ src/components/menu/Menu.d.ts | 5 +++ src/components/menubar/Menubar.d.ts | 7 ++++ src/components/message/Message.d.ts | 1 + src/components/multiselect/MultiSelect.d.ts | 2 +- src/components/orderlist/OrderList.d.ts | 3 ++ .../organizationchart/OrganizationChart.d.ts | 2 ++ src/components/overlaypanel/OverlayPanel.d.ts | 2 +- src/components/paginator/Paginator.d.ts | 2 ++ src/components/panel/Panel.d.ts | 1 + src/components/panelmenu/PanelMenu.d.ts | 6 ++++ src/components/password/Password.d.ts | 17 ++++++--- src/components/picklist/PickList.d.ts | 7 +++- src/components/progressbar/ProgressBar.d.ts | 5 +++ src/components/radiobutton/RadioButton.d.ts | 6 +++- src/components/rating/Rating.d.ts | 1 + src/components/selectbutton/SelectButton.d.ts | 1 + src/components/sidebar/Sidebar.d.ts | 1 + src/components/slider/Slider.d.ts | 3 +- src/components/splitbutton/SplitButton.d.ts | 4 +-- .../splitterpanel/SplitterPanel.d.ts | 5 +++ src/components/steps/Steps.d.ts | 6 ++++ src/components/tabmenu/TabMenu.d.ts | 5 +++ src/components/tabview/TabView.d.ts | 1 + src/components/tag/Tag.d.ts | 5 +++ src/components/textarea/Textarea.d.ts | 4 +-- src/components/tieredmenu/TieredMenu.d.ts | 5 +++ src/components/toast/Toast.d.ts | 2 ++ src/components/togglebutton/ToggleButton.d.ts | 5 +-- src/components/tree/Tree.d.ts | 2 ++ src/components/treeselect/TreeSelect.d.ts | 1 + src/components/treetable/TreeTable.d.ts | 7 ++++ .../tristatecheckbox/TriStateCheckbox.d.ts | 4 ++- 63 files changed, 236 insertions(+), 43 deletions(-) diff --git a/src/components/accordion/Accordion.d.ts b/src/components/accordion/Accordion.d.ts index 219e87afa..8f17a7169 100755 --- a/src/components/accordion/Accordion.d.ts +++ b/src/components/accordion/Accordion.d.ts @@ -8,6 +8,7 @@ interface AccordionProps { declare class Accordion { $props: AccordionProps; + $emit(eventName: 'update:activeIndex', value: number): this; $emit(eventName: 'tab-open', e: {originalEvent: Event, tab: any}): this; $emit(eventName: 'tab-close', e: {originalEvent: Event, tab: any}): this; $slots: { diff --git a/src/components/accordiontab/AccordionTab.d.ts b/src/components/accordiontab/AccordionTab.d.ts index 9b2c51975..9747a87cb 100755 --- a/src/components/accordiontab/AccordionTab.d.ts +++ b/src/components/accordiontab/AccordionTab.d.ts @@ -2,7 +2,6 @@ import { VNode } from 'vue'; interface AccordionTabProps { header?: string; - active?: boolean; disabled?: boolean; } diff --git a/src/components/autocomplete/AutoComplete.d.ts b/src/components/autocomplete/AutoComplete.d.ts index a529b8939..0391cea8c 100755 --- a/src/components/autocomplete/AutoComplete.d.ts +++ b/src/components/autocomplete/AutoComplete.d.ts @@ -17,11 +17,14 @@ interface AutoCompleteProps { inputStyle?: any; inputClass?: string; forceSelection?: boolean; + class?: any; + style?: any; panelClass?: string; } declare class AutoComplete { $props: AutoCompleteProps; + $emit(eventName: 'update:modelValue', 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: 'dropdown-click', e: {originalEvent: Event, query: string}): this; diff --git a/src/components/avatar/Avatar.d.ts b/src/components/avatar/Avatar.d.ts index 9007514df..e86473407 100644 --- a/src/components/avatar/Avatar.d.ts +++ b/src/components/avatar/Avatar.d.ts @@ -2,6 +2,8 @@ interface AvatarProps { label?: string; icon?: string; image?: string; + size?: string; + shape?: string; } declare class Avatar { diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index dc86b17a7..fed93b667 100755 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -40,10 +40,13 @@ interface CalendarProps { appendTo?: string; inputStyle?: any; inputClass?: string; + style?: any; + class?: string; } declare class Calendar { $props: CalendarProps; + $emit(eventName: 'update:modelValue', value: Date | Date[]): this; $emit(eventName: 'show'): this; $emit(eventName: 'hide'): this; $emit(eventName: 'month-change', e: { month: number, year: number }): this; diff --git a/src/components/carousel/Carousel.d.ts b/src/components/carousel/Carousel.d.ts index bf3d9b49f..5f2a3fb43 100755 --- a/src/components/carousel/Carousel.d.ts +++ b/src/components/carousel/Carousel.d.ts @@ -9,14 +9,15 @@ interface CarouselProps { orientation?: string; verticalViewPortHeight?: string; containerClass?: string; - dotsContentClass?: string; contentClass?: string; + indicatorsContentClass?: string; circular?: boolean; autoplayInterval?: number; } declare class Carousel { $props: CarouselProps; + $emit(eventName: 'update:page', value: number): this; $slots: { item: VNode[]; header: VNode[]; diff --git a/src/components/cascadeselect/CascadeSelect.d.ts b/src/components/cascadeselect/CascadeSelect.d.ts index a12641fe3..adfc58ecd 100644 --- a/src/components/cascadeselect/CascadeSelect.d.ts +++ b/src/components/cascadeselect/CascadeSelect.d.ts @@ -25,11 +25,12 @@ declare class CascadeSelect { $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'change-group', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'before-show'): this; - $emit(eventName: 'before-leave'): this; + $emit(eventName: 'before-hide'): this; $emit(eventName: 'show'): this; $emit(eventName: 'hide'): this; $slot: { option: VNode[]; + value: VNode[]; } } diff --git a/src/components/checkbox/Checkbox.d.ts b/src/components/checkbox/Checkbox.d.ts index f41293dd1..d7ec4be27 100755 --- a/src/components/checkbox/Checkbox.d.ts +++ b/src/components/checkbox/Checkbox.d.ts @@ -2,11 +2,15 @@ interface CheckboxProps { value?: any; modelValue?: any; binary?: boolean; + class?: string; + style?: any; } declare class Checkbox { $props: CheckboxProps; - $emit(eventName: string, event: Event): this; + $emit(eventName: 'update:page', value: any): this; + $emit(eventName: 'click', event: Event): this; + $emit(eventName: 'change', event: Event): this; } export default Checkbox; diff --git a/src/components/chip/Chip.d.ts b/src/components/chip/Chip.d.ts index 481145a8a..0a1bafa71 100644 --- a/src/components/chip/Chip.d.ts +++ b/src/components/chip/Chip.d.ts @@ -8,6 +8,7 @@ interface ChipProps { declare class Chip { $props: ChipProps; + $emit(eventName: 'remove', event: Event): this; } export default Chip; diff --git a/src/components/chips/Chips.d.ts b/src/components/chips/Chips.d.ts index 901f624d6..599144633 100755 --- a/src/components/chips/Chips.d.ts +++ b/src/components/chips/Chips.d.ts @@ -6,10 +6,13 @@ interface ChipsProps { addOnBlur?: boolean; allowDuplicate?: boolean; separator?: string; + class?: string; + style?: any; } declare class Chips { $props: ChipsProps; + $emit(eventName: 'update:modelValue', value: any[]): this; $emit(eventName: 'add', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'remove', e: { originalEvent: Event, value: any }): this; $slots: { diff --git a/src/components/colorpicker/ColorPicker.d.ts b/src/components/colorpicker/ColorPicker.d.ts index b1b10cb82..4d0017202 100755 --- a/src/components/colorpicker/ColorPicker.d.ts +++ b/src/components/colorpicker/ColorPicker.d.ts @@ -14,7 +14,7 @@ interface ColorPickerProps { declare class ColorPicker { $props: ColorPickerProps; - $emit(eventName: 'input', value: any): this; + $emit(eventName: 'update:modelValue', value: any): this; } export default ColorPicker; diff --git a/src/components/column/Column.d.ts b/src/components/column/Column.d.ts index be3b315ed..2f394efdf 100755 --- a/src/components/column/Column.d.ts +++ b/src/components/column/Column.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface ColumnProps { columnKey?: any; field?: string | ((item: any) => any); @@ -45,6 +47,17 @@ interface ColumnProps { declare class Column { $props: ColumnProps; + $slots: { + body: VNode[]; + header: VNode[]; + footer: VNode[]; + editor: VNode[]; + filter: VNode[]; + filterheader: VNode[]; + filterfooter: VNode[]; + filterclear: VNode[]; + filterapply: VNode[]; + } } export default Column; diff --git a/src/components/contextmenu/ContextMenu.d.ts b/src/components/contextmenu/ContextMenu.d.ts index c513917a8..62effe154 100755 --- a/src/components/contextmenu/ContextMenu.d.ts +++ b/src/components/contextmenu/ContextMenu.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface ContextMenuProps { model?: any[]; appendTo?: string; @@ -8,6 +10,9 @@ interface ContextMenuProps { declare class ContextMenu { $props: ContextMenuProps; + $slots: { + item: VNode[]; + } toggle(event: Event): void; show(event: Event, target?: any): void; hide(): void; diff --git a/src/components/datatable/DataTable.d.ts b/src/components/datatable/DataTable.d.ts index d6a556ef4..07aa6c27a 100755 --- a/src/components/datatable/DataTable.d.ts +++ b/src/components/datatable/DataTable.d.ts @@ -25,6 +25,8 @@ interface DataTableProps { filters?: { [s: string]: any; }; + filterDisplay?: string; + globalFilterFields?: any[]; filterLocale?: string; selection?: any[] | any; selectionMode?: string; @@ -64,6 +66,17 @@ interface DataTableProps { declare class DataTable { $props: DataTableProps; + $emit(eventName: 'update:first', value: number): this; + $emit(eventName: 'update:rows', value: number): this; + $emit(eventName: 'update:sortField', value: string | ((item: any) => any)): this; + $emit(eventName: 'update:sortOrder', value: number): this; + $emit(eventName: 'update:multiSortMeta', value: any[]): this; + $emit(eventName: 'update:selection', value: any[] | any): this; + $emit(eventName: 'update:contextMenuSelection', value: boolean): this; + $emit(eventName: 'update:expandedRows', value: any[]): this; + $emit(eventName: 'update:expandedRowGroups', value: any[]): this; + $emit(eventName: 'update:filters', value: any): this; + $emit(eventName: 'update:editingRows', value: any[]): this; $emit(eventName: 'page', event: Event): this; $emit(eventName: 'sort', event: Event): this; $emit(eventName: 'filter', event: Event): this; @@ -71,21 +84,26 @@ declare class DataTable { $emit(eventName: 'row-click', event: Event): this; $emit(eventName: 'row-dblclick', event: Event): this; $emit(eventName: 'row-contextmenu', event: Event): this; - $emit(eventName: 'row-select', event: Event): this; - $emit(eventName: 'row-unselect', event: Event): this; - $emit(eventName: 'column-resize-end', event: Event): this; - $emit(eventName: 'column-reorder', event: Event): this; - $emit(eventName: 'row-reorder', event: Event): this; + $emit(eventName: 'row-select', event: {originalEvent: Event, data: any, index: number, type: string}): this; + $emit(eventName: 'row-select-all', event: {originalEvent: Event, data: any}): this; + $emit(eventName: 'row-unselect-all', event: {originalEvent: Event}): this; + $emit(eventName: 'row-unselect', event: {originalEvent: Event, data: any, index: number, type: string}): this; + $emit(eventName: 'column-resize-end', event: {originalEvent: Event, delta: any}): this; + $emit(eventName: 'column-reorder', event: {originalEvent: Event, dragIndex: number, dropIndex: number}): this; + $emit(eventName: 'row-reorder', event: {originalEvent: Event, dragIndex: number, dropIndex: number, value: any[]}): this; $emit(eventName: 'row-expand', event: Event): this; $emit(eventName: 'row-collapse', event: Event): this; - $emit(eventName: 'rowgroup-expand', event: Event): this; - $emit(eventName: 'rowgroup-collapse', event: Event): this; + $emit(eventName: 'rowgroup-expand', event: {originalEvent: Event, data: any[]}): this; + $emit(eventName: 'rowgroup-collapse', event: {originalEvent: Event, data: any[]}): this; $emit(eventName: 'cell-edit-init', event: Event): this; $emit(eventName: 'cell-edit-complete', event: Event): this; $emit(eventName: 'cell-edit-cancel', event: Event): this; $emit(eventName: 'row-edit-init', event: Event): this; $emit(eventName: 'row-edit-save', event: Event): this; $emit(eventName: 'row-edit-cancel', event: Event): this; + $emit(eventName: 'editing-cell-change', event: Event): this; + $emit(eventName: 'state-restore', value: any[]): this; + $emit(eventName: 'state-save', value: any[]): this; $slots: { header: VNode[]; @@ -93,6 +111,9 @@ declare class DataTable { paginatorRight: VNode[]; empty: VNode[]; footer: VNode[]; + groupheader: VNode[]; + groupfooter: VNode[]; + loading: VNode[]; }; } diff --git a/src/components/dataview/DataView.d.ts b/src/components/dataview/DataView.d.ts index bc09e4071..ac66aeb36 100755 --- a/src/components/dataview/DataView.d.ts +++ b/src/components/dataview/DataView.d.ts @@ -20,6 +20,8 @@ interface DataViewProps { declare class DataView { $props: DataViewProps; + $emit(eventName: 'update:first', value: number): this; + $emit(eventName: 'update:rows', value: number): this; $emit(eventName: 'page', event: Event): this; $slots: { header: VNode[]; @@ -27,6 +29,7 @@ declare class DataView { paginatorRight: VNode[]; list: VNode[]; grid: VNode[]; + empty: VNode[]; footer: VNode[]; } } diff --git a/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts b/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts index 55c9e9713..46baa37a4 100755 --- a/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +++ b/src/components/dataviewlayoutoptions/DataViewLayoutOptions.d.ts @@ -1,10 +1,10 @@ interface DataViewLayoutOptionsProps { - value?: string; + modelValue?: string; } declare class DataViewLayoutOptions { $props: DataViewLayoutOptionsProps; - $emit(eventName: 'input', layout: string): this; + $emit(eventName: 'update:modelValue', value: string): this; } export default DataViewLayoutOptions; diff --git a/src/components/dialog/Dialog.d.ts b/src/components/dialog/Dialog.d.ts index ce5cb3402..2ce8bb7a0 100755 --- a/src/components/dialog/Dialog.d.ts +++ b/src/components/dialog/Dialog.d.ts @@ -26,11 +26,12 @@ interface DialogProps { declare class Dialog { $props: DialogProps; + $emit(eventName: 'update:visible', value: boolean): this; $emit(eventName: 'show'): this; $emit(eventName: 'hide'): this; - $emit(eventName: 'maximize'): this; - $emit(eventName: 'unmaximize'): this; - $emit(eventName: 'dragend'): this; + $emit(eventName: 'maximize', event: Event): this; + $emit(eventName: 'unmaximize', event: Event): this; + $emit(eventName: 'dragend', event: Event): this; $slots: { '': VNode[]; header: VNode[]; diff --git a/src/components/divider/Divider.d.ts b/src/components/divider/Divider.d.ts index 97fa62228..903495184 100644 --- a/src/components/divider/Divider.d.ts +++ b/src/components/divider/Divider.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface DividerProps { align?: string; layout?: string; @@ -6,6 +8,9 @@ interface DividerProps { declare class Divider { $props: DividerProps; + $slots: { + '': VNode[]; + } } export default Divider; diff --git a/src/components/dropdown/Dropdown.d.ts b/src/components/dropdown/Dropdown.d.ts index 3299ba971..8b11ac150 100755 --- a/src/components/dropdown/Dropdown.d.ts +++ b/src/components/dropdown/Dropdown.d.ts @@ -32,7 +32,7 @@ interface DropdownProps { declare class Dropdown { $props: DropdownProps; - $emit(eventName: 'input', value: string): this; + $emit(eventName: 'update:modelValue', value: any): this; $emit(eventName: 'change', e: { originalEvent: Event, value: string }): this; $emit(eventName: 'before-show'): this; $emit(eventName: 'before-leave'): this; @@ -42,7 +42,13 @@ declare class Dropdown { $emit(eventName: 'blur', e: Event): this; $emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this; $slot: { + value: VNode[]; + header: VNode[]; + footer: VNode[]; option: VNode[]; + optiongroup: VNode[]; + emptyfilter: VNode[]; + empty: VNode[]; } } diff --git a/src/components/editor/Editor.d.ts b/src/components/editor/Editor.d.ts index 0a39b2a64..7626a72ae 100755 --- a/src/components/editor/Editor.d.ts +++ b/src/components/editor/Editor.d.ts @@ -10,7 +10,7 @@ interface EditorProps { declare class Editor { $props: EditorProps; - $emit(eventName: 'input', event: string): this; + $emit(eventName: 'update:modelValue', value: string): this; $emit(eventName: 'text-change', e: { htmlValue: string, textValue: any, delta: any, source: string, instance: any}): this; $slot: { toolbar: VNode[]; diff --git a/src/components/fieldset/Fieldset.d.ts b/src/components/fieldset/Fieldset.d.ts index 79f13b3e6..33ceffd1b 100755 --- a/src/components/fieldset/Fieldset.d.ts +++ b/src/components/fieldset/Fieldset.d.ts @@ -8,6 +8,7 @@ interface FieldsetProps { declare class Fieldset { $props: FieldsetProps; + $emit(eventName: 'update:collapsed', value: boolean): this; $emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean }): this; $slots: { '': VNode[]; diff --git a/src/components/fileupload/FileUpload.d.ts b/src/components/fileupload/FileUpload.d.ts index 1e53b833d..d05fa50db 100755 --- a/src/components/fileupload/FileUpload.d.ts +++ b/src/components/fileupload/FileUpload.d.ts @@ -26,8 +26,9 @@ declare class FileUpload { $emit(eventName: 'select', e: { originalEvent: Event, files: any }): this; $emit(eventName: 'before-upload', e: { xhr: XMLHttpRequest, formData: any }): this; $emit(eventName: 'progress', e: { originalEvent: Event, progress: any }): this; - $emit(eventName: 'upload', e: { originalEvent: Event, files: any }): this; - $emit(eventName: 'error', e: { originalEvent: Event, files: any }): this; + $emit(eventName: 'upload', e: { xhr: XMLHttpRequest, files: any }): this; + $emit(eventName: 'uploader', e: { files: any }): this; + $emit(eventName: 'error', e: { xhr: XMLHttpRequest, files: any }): this; $emit(eventName: 'before-send', e: { xhr: XMLHttpRequest, formData: any }): this; $emit(eventName: 'clear'): this; $emit(eventName: 'remove', e: { file: File, files: File[] }): this; diff --git a/src/components/galleria/Galleria.d.ts b/src/components/galleria/Galleria.d.ts index 0c36617fb..3dabf0935 100755 --- a/src/components/galleria/Galleria.d.ts +++ b/src/components/galleria/Galleria.d.ts @@ -29,6 +29,8 @@ interface GalleriaProps { declare class Galleria { $props: GalleriaProps; + $emit(eventName: 'update:activeIndex', value: number): this; + $emit(eventName: 'update:visible', value: boolean): this; $slots: { header: VNode[]; footer: VNode[]; diff --git a/src/components/inplace/Inplace.d.ts b/src/components/inplace/Inplace.d.ts index 17c8205a5..fa926711b 100755 --- a/src/components/inplace/Inplace.d.ts +++ b/src/components/inplace/Inplace.d.ts @@ -7,6 +7,9 @@ interface InplaceProps { declare class Inplace { $props: InplaceProps; + $emit(eventName: 'update:active', value: boolean): this; + $emit(eventName: 'open', e: Event): this; + $emit(eventName: 'close', e: Event): this; $slots: { display: VNode[]; content: VNode[]; diff --git a/src/components/inputmask/InputMask.d.ts b/src/components/inputmask/InputMask.d.ts index dde3486de..03051a17d 100755 --- a/src/components/inputmask/InputMask.d.ts +++ b/src/components/inputmask/InputMask.d.ts @@ -8,7 +8,7 @@ interface InputMaskProps { declare class InputMask { $props: InputMaskProps; - $emit(eventName: 'input', value: string): this; + $emit(eventName: 'update:modelValue', value: string): this; $emit(eventName: 'focus', event: Event): this; $emit(eventName: 'blur', event: Event): this; $emit(eventName: 'keydown', event: Event): this; diff --git a/src/components/inputnumber/InputNumber.d.ts b/src/components/inputnumber/InputNumber.d.ts index ed4077a58..86ec19269 100755 --- a/src/components/inputnumber/InputNumber.d.ts +++ b/src/components/inputnumber/InputNumber.d.ts @@ -22,11 +22,13 @@ interface InputNumberProps { step?: number; inputStyle?: any; inputClass?: string; + style?: any; + class?: string; } declare class InputNumber { $props: InputNumberProps; - $emit(eventName: string, value: number | Event): this; + $emit(eventName: 'update:modelValue', value: number): this; $emit(eventName: 'input', e: {originalEvent: Event, value: any}): this; } diff --git a/src/components/inputswitch/InputSwitch.d.ts b/src/components/inputswitch/InputSwitch.d.ts index ea8e552d0..63ee84fbf 100755 --- a/src/components/inputswitch/InputSwitch.d.ts +++ b/src/components/inputswitch/InputSwitch.d.ts @@ -1,9 +1,14 @@ interface InputSwitchProps { modelValue?: boolean; + class?: string; + style?: any; } declare class InputSwitch { $props: InputSwitchProps; + $emit(eventName: 'update:modelValue', value: boolean): this; + $emit(eventName: 'click', event: Event): this; + $emit(eventName: 'change', event: Event): this; } export default InputSwitch; diff --git a/src/components/inputtext/InputText.d.ts b/src/components/inputtext/InputText.d.ts index dbe7ef181..09b77492a 100755 --- a/src/components/inputtext/InputText.d.ts +++ b/src/components/inputtext/InputText.d.ts @@ -1,10 +1,10 @@ interface InputTextProps { - value?: string; + modelValue?: string; } declare class InputText { $props: InputTextProps; - $emit(eventName: 'input', value: string): this; + $emit(eventName: 'update:modelValue', value: string): this; } export default InputText; diff --git a/src/components/knob/Knob.d.ts b/src/components/knob/Knob.d.ts index e50a37c4b..b5dc7a06d 100644 --- a/src/components/knob/Knob.d.ts +++ b/src/components/knob/Knob.d.ts @@ -16,6 +16,7 @@ interface KnobProps { declare class Knob { $props: KnobProps; + $emit(eventName: 'update:modelValue', value: number): this; $emit(eventName: 'change', value: any): this; } diff --git a/src/components/listbox/Listbox.d.ts b/src/components/listbox/Listbox.d.ts index d313bf83a..b0e325774 100755 --- a/src/components/listbox/Listbox.d.ts +++ b/src/components/listbox/Listbox.d.ts @@ -18,18 +18,22 @@ interface ListboxProps { filterLocale?: string; filterMatchMode?: string; filterFields?: string[]; - ariaLabelledBy?: string; emptyFilterMessage?: string; emptyMessage?: string; } declare class Listbox { $props: ListboxProps; - $emit(eventName: 'input', value: any): this; + $emit(eventName: 'update:modelValue', value: any): this; $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this; $emit(eventName: 'filter', e: { originalEvent: Event, value: string }): this; $slots: { + header: VNode[]; + footer: VNode[]; option: VNode[]; + optiongroup: VNode[]; + emptyfilter: VNode[]; + empty: VNode[]; } } diff --git a/src/components/megamenu/MegaMenu.d.ts b/src/components/megamenu/MegaMenu.d.ts index 13a275d14..571ef5be2 100755 --- a/src/components/megamenu/MegaMenu.d.ts +++ b/src/components/megamenu/MegaMenu.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface MegaMenuProps { model?: any[]; orientation?: string; @@ -5,6 +7,10 @@ interface MegaMenuProps { declare class MegaMenu { $props: MegaMenuProps; + $slots: { + '': VNode[]; + item: VNode[]; + } } export default MegaMenu; diff --git a/src/components/menu/Menu.d.ts b/src/components/menu/Menu.d.ts index 8fd7bb5d4..34269f643 100755 --- a/src/components/menu/Menu.d.ts +++ b/src/components/menu/Menu.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface MenuProps { popup?: boolean; model?: any[]; @@ -11,6 +13,9 @@ declare class Menu { toggle(event: Event): void; show(event: Event, target?: any): void; hide(): void; + $slots: { + item: VNode[]; + } } export default Menu; diff --git a/src/components/menubar/Menubar.d.ts b/src/components/menubar/Menubar.d.ts index f8f53ef26..b7d34a09e 100755 --- a/src/components/menubar/Menubar.d.ts +++ b/src/components/menubar/Menubar.d.ts @@ -1,9 +1,16 @@ +import { VNode } from 'vue'; + interface MenubarProps { model?: any[]; } declare class Menubar { $props: MenubarProps; + $slots: { + start: VNode[]; + end: VNode[]; + item: VNode[]; + } } export default Menubar; diff --git a/src/components/message/Message.d.ts b/src/components/message/Message.d.ts index 35ffd877d..ea74d98dc 100755 --- a/src/components/message/Message.d.ts +++ b/src/components/message/Message.d.ts @@ -9,6 +9,7 @@ interface MessageProps { declare class Message { $props: MessageProps; + $emit(eventName: 'close', event: Event): this; $slots: { '': VNode[]; } diff --git a/src/components/multiselect/MultiSelect.d.ts b/src/components/multiselect/MultiSelect.d.ts index c738a2ff1..5a5fffdaa 100755 --- a/src/components/multiselect/MultiSelect.d.ts +++ b/src/components/multiselect/MultiSelect.d.ts @@ -33,7 +33,7 @@ interface MultiSelectProps { declare class MultiSelect { $props: MultiSelectProps; - $emit(eventName: 'input', value: any): this; + $emit(eventName: 'update:modelValue', value: any): this; $emit(eventName: 'change', e: {originalEvent: Event, value: any}): this; $emit(eventName: 'before-show'): this; $emit(eventName: 'before-leave'): this; diff --git a/src/components/orderlist/OrderList.d.ts b/src/components/orderlist/OrderList.d.ts index 3e9ba3ca0..e8acd93d3 100755 --- a/src/components/orderlist/OrderList.d.ts +++ b/src/components/orderlist/OrderList.d.ts @@ -12,7 +12,10 @@ interface OrderListProps { declare class OrderList { $props: OrderListProps; + $emit(eventName: 'update:modelValue', value: any[]): this; + $emit(eventName: 'update:selection', value: any[]): this; $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this; + $emit(eventName: 'selection-change', e: { originalEvent: Event, value: any[]}): this; $slots: { header: VNode[]; item: VNode[]; diff --git a/src/components/organizationchart/OrganizationChart.d.ts b/src/components/organizationchart/OrganizationChart.d.ts index 3203cb284..43bab3288 100755 --- a/src/components/organizationchart/OrganizationChart.d.ts +++ b/src/components/organizationchart/OrganizationChart.d.ts @@ -10,6 +10,8 @@ interface OrganizationChartProps { declare class OrganizationChart { $props: OrganizationChartProps; + $emit(eventName: 'update:selectionKeys', value: any): this; + $emit(eventName: 'update:collapsedKeys', value: boolean): this; $emit(eventName: 'node-select', node: any): this; $emit(eventName: 'node-unselect', node: any): this; $emit(eventName: 'node-expand', node: any): this; diff --git a/src/components/overlaypanel/OverlayPanel.d.ts b/src/components/overlaypanel/OverlayPanel.d.ts index d1adfd808..cc3b9ed21 100755 --- a/src/components/overlaypanel/OverlayPanel.d.ts +++ b/src/components/overlaypanel/OverlayPanel.d.ts @@ -1,7 +1,7 @@ import { VNode } from 'vue'; interface OverlayPanelProps { - ismissable?: boolean; + dismissable?: boolean; showCloseIcon?: boolean; appendTo?: string; baseZIndex?: number; diff --git a/src/components/paginator/Paginator.d.ts b/src/components/paginator/Paginator.d.ts index ac27de89e..c7317f96f 100755 --- a/src/components/paginator/Paginator.d.ts +++ b/src/components/paginator/Paginator.d.ts @@ -20,6 +20,8 @@ interface PaginatorProps { declare class Paginator { $props: PaginatorProps; + $emit(eventName: 'update:first', value: number): this; + $emit(eventName: 'update:rows', value: number): this; $emit(eventName: 'page', event: PageState): this; $slots: { left: VNode[]; diff --git a/src/components/panel/Panel.d.ts b/src/components/panel/Panel.d.ts index 8aabc74da..148bb7a4a 100755 --- a/src/components/panel/Panel.d.ts +++ b/src/components/panel/Panel.d.ts @@ -8,6 +8,7 @@ interface PanelProps { declare class Panel { $props: PanelProps; + $emit(eventName: 'update:collapsed', value: boolean): this; $emit(eventName: 'toggle', e: { originalEvent: Event, value: boolean; }): this; $slots: { '': VNode[]; diff --git a/src/components/panelmenu/PanelMenu.d.ts b/src/components/panelmenu/PanelMenu.d.ts index 7e7fdf50e..efdef5b2a 100755 --- a/src/components/panelmenu/PanelMenu.d.ts +++ b/src/components/panelmenu/PanelMenu.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface PanelMenuProps { model?: any[]; expandedKeys?: any; @@ -5,6 +7,10 @@ interface PanelMenuProps { declare class PanelMenu { $props: PanelMenuProps; + $emit(eventName: 'update:expandedKeys', value: any): this; + $slots: { + item: VNode[]; + } } export default PanelMenu; diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 7905bed11..7603e8d50 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface PasswordProps { modelValue?: string; promptLabel?: string; @@ -9,16 +11,23 @@ interface PasswordProps { feedback?: boolean; appendTo?: string; toggleMask?: boolean; - inputStyle?: any; - inputClass?: string; - panelClass?: string; hideIcon?: string; showIcon?: string; + inputStyle?: any; + inputClass?: string; + style?: any; + class?: string; + panelClass?: string; } declare class Password { $props: PasswordProps; - $emit(eventName: string, event: Event): this; + $emit(eventName: 'update:modelValue', value: string): this; + $slots: { + header: VNode[]; + footer: VNode[]; + content: VNode[]; + } } export default Password; diff --git a/src/components/picklist/PickList.d.ts b/src/components/picklist/PickList.d.ts index d6642c00b..98b16af79 100755 --- a/src/components/picklist/PickList.d.ts +++ b/src/components/picklist/PickList.d.ts @@ -12,7 +12,10 @@ interface PickListProps { declare class PickList { $props: PickListProps; - $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string}): this; + $emit(eventName: 'update:modelValue', value: any[]): this; + $emit(eventName: 'update:selection', value: any[]): this; + $emit(eventName: 'reorder', e: { originalEvent: Event, value: any[]; direction: string, listIndex: number}): this; + $emit(eventName: 'selection-change', e: { originalEvent: Event, value: any[]}): 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-to-source', e: { originalEvent: Event, items: [] }): this; @@ -20,6 +23,8 @@ declare class PickList { $slots: { header: VNode[]; item: VNode[]; + sourceHeader: VNode[]; + targetHeader: VNode[]; } } diff --git a/src/components/progressbar/ProgressBar.d.ts b/src/components/progressbar/ProgressBar.d.ts index e2144f5fe..eee7a2c6b 100755 --- a/src/components/progressbar/ProgressBar.d.ts +++ b/src/components/progressbar/ProgressBar.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface ProgressBarProps { value?: number; mode?: string; @@ -6,6 +8,9 @@ interface ProgressBarProps { declare class ProgressBar { $props: ProgressBarProps; + $slots: { + '': VNode[]; + } } export default ProgressBar; diff --git a/src/components/radiobutton/RadioButton.d.ts b/src/components/radiobutton/RadioButton.d.ts index e442724ec..00d49b1ca 100755 --- a/src/components/radiobutton/RadioButton.d.ts +++ b/src/components/radiobutton/RadioButton.d.ts @@ -1,11 +1,15 @@ interface RadioButtonProps { value?: any; modelValue?: any; + class?: string; + style?: any; } declare class RadioButton { $props: RadioButtonProps; - $emit(eventName: string, event: Event): this; + $emit(eventName: 'update:modelValue', value: any): this; + $emit(eventName: 'click', event: Event): this; + $emit(eventName: 'change', event: Event): this; } export default RadioButton; diff --git a/src/components/rating/Rating.d.ts b/src/components/rating/Rating.d.ts index b1393f0eb..1d70d5006 100755 --- a/src/components/rating/Rating.d.ts +++ b/src/components/rating/Rating.d.ts @@ -8,6 +8,7 @@ interface RatingProps { declare class Rating { $props: RatingProps; + $emit(eventName: 'update:modelValue', value: number): this; $emit(eventName: 'change', e: { originalEvent: Event, value: any }): this; } diff --git a/src/components/selectbutton/SelectButton.d.ts b/src/components/selectbutton/SelectButton.d.ts index 9edb4eb90..76e136134 100755 --- a/src/components/selectbutton/SelectButton.d.ts +++ b/src/components/selectbutton/SelectButton.d.ts @@ -14,6 +14,7 @@ interface SelectButtonProps { declare class SelectButton { $props: SelectButtonProps; + $emit(eventName: 'update:modelValue', value: any): this; $emit(eventName: 'focus', event: Event): this; $emit(eventName: 'blur', event: Event): this; $slots: { diff --git a/src/components/sidebar/Sidebar.d.ts b/src/components/sidebar/Sidebar.d.ts index 78f23a89f..ee395a484 100755 --- a/src/components/sidebar/Sidebar.d.ts +++ b/src/components/sidebar/Sidebar.d.ts @@ -13,6 +13,7 @@ interface SidebarProps { declare class Sidebar { $props: SidebarProps; + $emit(eventName: 'update:modelValue', value: boolean): this; $emit(eventName: 'show'): this; $emit(eventName: 'hide'): this; $slots: { diff --git a/src/components/slider/Slider.d.ts b/src/components/slider/Slider.d.ts index 8b9452e29..668789fcf 100755 --- a/src/components/slider/Slider.d.ts +++ b/src/components/slider/Slider.d.ts @@ -11,8 +11,9 @@ interface SliderProps { declare class Slider { $props: SliderProps; + $emit(eventName: 'update:modelValue', value: number | any[]): this; $emit(eventName: 'change', value: any): this; - $emit(eventName: 'slideend', e: {originalEvent: Event, values: any}): this; + $emit(eventName: 'slideend', e: {originalEvent: Event, value: any}): this; } export default Slider; diff --git a/src/components/splitbutton/SplitButton.d.ts b/src/components/splitbutton/SplitButton.d.ts index 87ef9ff5b..f17cc9bae 100755 --- a/src/components/splitbutton/SplitButton.d.ts +++ b/src/components/splitbutton/SplitButton.d.ts @@ -2,11 +2,11 @@ interface SplitButtonProps { label?: string; icon?: string; model?: any[]; - disabled?: boolean; - tabindex?: string; autoZIndex?: boolean; baseZIndex?: number; appendTo?: string; + class?: string; + style?: any; } declare class SplitButton { diff --git a/src/components/splitterpanel/SplitterPanel.d.ts b/src/components/splitterpanel/SplitterPanel.d.ts index 15f549546..24fae75ff 100644 --- a/src/components/splitterpanel/SplitterPanel.d.ts +++ b/src/components/splitterpanel/SplitterPanel.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface SplitterPanelProps { size?: number; minSize?: number; @@ -5,6 +7,9 @@ interface SplitterPanelProps { declare class SplitterPanel { $props: SplitterPanelProps; + $slots: { + '': VNode[]; + } } export default SplitterPanel; diff --git a/src/components/steps/Steps.d.ts b/src/components/steps/Steps.d.ts index 11490cc49..96ec8c3f2 100755 --- a/src/components/steps/Steps.d.ts +++ b/src/components/steps/Steps.d.ts @@ -1,10 +1,16 @@ +import { VNode } from 'vue'; + interface StepsProps { + id?: string; model?: any[]; readonly?: boolean; } declare class Steps { $props: StepsProps; + $slots: { + item: VNode[]; + } } export default Steps; diff --git a/src/components/tabmenu/TabMenu.d.ts b/src/components/tabmenu/TabMenu.d.ts index d99a9ad27..31942d9c7 100755 --- a/src/components/tabmenu/TabMenu.d.ts +++ b/src/components/tabmenu/TabMenu.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface TabMenuProps { model?: any[]; exact?: boolean; @@ -5,6 +7,9 @@ interface TabMenuProps { declare class TabMenu { $props: TabMenuProps; + $slots: { + item: VNode[]; + } } export default TabMenu; diff --git a/src/components/tabview/TabView.d.ts b/src/components/tabview/TabView.d.ts index 2548e4182..afc8ad7e6 100755 --- a/src/components/tabview/TabView.d.ts +++ b/src/components/tabview/TabView.d.ts @@ -7,6 +7,7 @@ interface TabViewProps { declare class TabView { $props: TabViewProps; + $emit(eventName: 'update:modelValue', value: number): this; $emit(eventName: 'tab-change', e: { originalEvent: Event, index: number }): this; $emit(eventName: 'tab-click', e: { originalEvent: Event, index: number }): this; $slots: { diff --git a/src/components/tag/Tag.d.ts b/src/components/tag/Tag.d.ts index 6e4dde358..fe7dcc89b 100644 --- a/src/components/tag/Tag.d.ts +++ b/src/components/tag/Tag.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface TagProps { value?: any; severity?: string; @@ -7,6 +9,9 @@ interface TagProps { declare class Tag { $props: TagProps; + $slots: { + '': VNode[]; + } } export default Tag; diff --git a/src/components/textarea/Textarea.d.ts b/src/components/textarea/Textarea.d.ts index 1c3bd0c85..eae570060 100755 --- a/src/components/textarea/Textarea.d.ts +++ b/src/components/textarea/Textarea.d.ts @@ -1,11 +1,11 @@ interface TextareaProps { - value?: string; + modelValue?: string; autoResize?: boolean; } declare class Textarea { $props: TextareaProps; - $emit(eventName: 'input', value: string): this; + $emit(eventName: 'update:modelValue', value: string): this; } export default Textarea; diff --git a/src/components/tieredmenu/TieredMenu.d.ts b/src/components/tieredmenu/TieredMenu.d.ts index 1c5ac9d17..cc07f9d13 100755 --- a/src/components/tieredmenu/TieredMenu.d.ts +++ b/src/components/tieredmenu/TieredMenu.d.ts @@ -1,3 +1,5 @@ +import { VNode } from 'vue'; + interface TieredMenuProps { popup?: boolean; model?: any[]; @@ -11,6 +13,9 @@ declare class TieredMenu { toggle(event: Event): void; show(event: Event, target?: any): void; hide(): void; + $slots: { + item: VNode[]; + } } export default TieredMenu; diff --git a/src/components/toast/Toast.d.ts b/src/components/toast/Toast.d.ts index c66bf21da..34e314761 100755 --- a/src/components/toast/Toast.d.ts +++ b/src/components/toast/Toast.d.ts @@ -1,6 +1,8 @@ interface ToastProps { group?: string; position?: string; + autoZIndex?: boolean; + baseZIndex?: number; } declare class Toast { diff --git a/src/components/togglebutton/ToggleButton.d.ts b/src/components/togglebutton/ToggleButton.d.ts index 2c706d031..595ecfddf 100755 --- a/src/components/togglebutton/ToggleButton.d.ts +++ b/src/components/togglebutton/ToggleButton.d.ts @@ -1,5 +1,5 @@ interface ToggleButtonProps { - value?: boolean; + modelValue?: boolean; onIcon?: string; offIcon?: string; onLabel?: string; @@ -9,7 +9,8 @@ interface ToggleButtonProps { declare class ToggleButton { $props: ToggleButtonProps; - $emit(eventName: string, event: Event): this; + $emit(eventName: 'update:modelValue', value: boolean): this; + $emit(eventName: 'change', event: Event): this; } export default ToggleButton; diff --git a/src/components/tree/Tree.d.ts b/src/components/tree/Tree.d.ts index 897c97a05..aeb13aa70 100755 --- a/src/components/tree/Tree.d.ts +++ b/src/components/tree/Tree.d.ts @@ -18,6 +18,8 @@ interface TreeProps { declare class Tree { $props: TreeProps; + $emit(eventName: 'update:expandedKeys', value: any): this; + $emit(eventName: 'update:selectionKeys', value: any): this; $emit(eventName: 'node-select', node: any): this; $emit(eventName: 'node-unselect', node: any): this; $emit(eventName: 'node-expand', node: any): this; diff --git a/src/components/treeselect/TreeSelect.d.ts b/src/components/treeselect/TreeSelect.d.ts index c33a6e177..7d44edfa4 100644 --- a/src/components/treeselect/TreeSelect.d.ts +++ b/src/components/treeselect/TreeSelect.d.ts @@ -33,6 +33,7 @@ declare class TreeSelect { value: VNode[]; header: VNode[]; footer: VNode[]; + empty: VNode[]; } } diff --git a/src/components/treetable/TreeTable.d.ts b/src/components/treetable/TreeTable.d.ts index 61ab479e4..3fd01cf10 100755 --- a/src/components/treetable/TreeTable.d.ts +++ b/src/components/treetable/TreeTable.d.ts @@ -44,6 +44,13 @@ interface TreeTableProps { declare class TreeTable { $props: TreeTableProps; + $emit(eventName: 'update:expandedKeys', value: any): this; + $emit(eventName: 'update:selectionKeys', value: any): this; + $emit(eventName: 'update:first', value: number): this; + $emit(eventName: 'update:rows', value: number): this; + $emit(eventName: 'update:sortField', value: string | Function): this; + $emit(eventName: 'update:sortOrder', value: number): this; + $emit(eventName: 'update:multiSortMeta', value: any[]): this; $emit(eventName: 'page', event: Event): this; $emit(eventName: 'sort', event: Event): this; $emit(eventName: 'filter', event: Event): this; diff --git a/src/components/tristatecheckbox/TriStateCheckbox.d.ts b/src/components/tristatecheckbox/TriStateCheckbox.d.ts index 4a419cad2..6e9c59e39 100755 --- a/src/components/tristatecheckbox/TriStateCheckbox.d.ts +++ b/src/components/tristatecheckbox/TriStateCheckbox.d.ts @@ -1,10 +1,12 @@ interface TriStateCheckboxProps { modelValue?: any; + style?: any; + class?: string; } declare class TriStateCheckbox { $props: TriStateCheckboxProps; - $emit(eventName: string, event: Event): this; + $emit(eventName: 'update:modelValue', value: any): this; } export default TriStateCheckbox;