From 4702bbeb24845a9657b064cf82bcac86d1cac7ca 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, 10 Jan 2022 11:52:18 +0300 Subject: [PATCH] Fixed #1959 - Update type checking for class properties --- src/components/autocomplete/AutoComplete.d.ts | 2 +- src/components/badge/Badge.d.ts | 2 +- src/components/blockui/BlockUI.d.ts | 2 +- src/components/button/Button.d.ts | 4 ++-- src/components/calendar/Calendar.d.ts | 6 +++--- src/components/carousel/Carousel.d.ts | 6 +++--- src/components/cascadeselect/CascadeSelect.d.ts | 2 +- src/components/checkbox/Checkbox.d.ts | 2 +- src/components/chips/Chips.d.ts | 2 +- src/components/colorpicker/ColorPicker.d.ts | 4 ++-- src/components/column/Column.d.ts | 12 ++++++------ src/components/datatable/DataTable.d.ts | 2 +- src/components/dialog/Dialog.d.ts | 4 ++-- src/components/dock/Dock.d.ts | 2 +- src/components/dropdown/Dropdown.d.ts | 2 +- src/components/fileupload/FileUpload.d.ts | 2 +- src/components/galleria/Galleria.d.ts | 2 +- src/components/image/Image.d.ts | 2 +- src/components/inputswitch/InputSwitch.d.ts | 2 +- src/components/menuitem/MenuItem.d.ts | 2 +- src/components/multiselect/MultiSelect.d.ts | 2 +- src/components/password/Password.d.ts | 6 +++--- src/components/radiobutton/RadioButton.d.ts | 2 +- src/components/speeddial/SpeedDial.d.ts | 4 ++-- src/components/splitbutton/SplitButton.d.ts | 2 +- src/components/toast/Toast.d.ts | 4 ++-- src/components/treeselect/TreeSelect.d.ts | 2 +- .../tristatecheckbox/TriStateCheckbox.d.ts | 2 +- src/components/virtualscroller/VirtualScroller.d.ts | 2 +- 29 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/components/autocomplete/AutoComplete.d.ts b/src/components/autocomplete/AutoComplete.d.ts index a326d4612..cfb715d24 100755 --- a/src/components/autocomplete/AutoComplete.d.ts +++ b/src/components/autocomplete/AutoComplete.d.ts @@ -134,7 +134,7 @@ export interface AutoCompleteProps { /** * Style class of the overlay panel. */ - panelClass?: string; + panelClass?: any; /** * Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it. * @see VirtualScroller.VirtualScrollerProps diff --git a/src/components/badge/Badge.d.ts b/src/components/badge/Badge.d.ts index 3bc8089db..2d55781d5 100644 --- a/src/components/badge/Badge.d.ts +++ b/src/components/badge/Badge.d.ts @@ -26,7 +26,7 @@ export interface BadgeSlots { /** * Content can easily be customized with the default slot instead of using the built-in display. */ - default: () => VNode[]; + default: () => VNode[]; } export declare type BadgeEmits = { diff --git a/src/components/blockui/BlockUI.d.ts b/src/components/blockui/BlockUI.d.ts index 2e5654ca7..fec8512e6 100755 --- a/src/components/blockui/BlockUI.d.ts +++ b/src/components/blockui/BlockUI.d.ts @@ -26,7 +26,7 @@ export interface BlockUISlots { /** * Custom content's slot. */ - default: () => VNode[]; + default: () => VNode[]; } export declare type BlockUIEmits = { diff --git a/src/components/button/Button.d.ts b/src/components/button/Button.d.ts index 8f0201d84..992b4c166 100755 --- a/src/components/button/Button.d.ts +++ b/src/components/button/Button.d.ts @@ -8,10 +8,10 @@ export interface ButtonProps extends ButtonHTMLAttributes { * Inline style of the button. */ style?: any; - /** + /** * Style class of the button. */ - class?: string | undefined; + class?: any; /** * Text of the button. */ diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index 60a9a954b..1745598c1 100755 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -122,7 +122,7 @@ export interface CalendarProps { /** * Style class of the datetimepicker panel. */ - panelClass?: string | undefined; + panelClass?: any; /** * The minimum selectable date. */ @@ -228,7 +228,7 @@ export interface CalendarProps { /** * Style class of the input field. */ - inputClass?: string | undefined; + inputClass?: any; /** * Inline style of the component. */ @@ -236,7 +236,7 @@ export interface CalendarProps { /** * Style class of the component. */ - class?: string | undefined; + class?: any; /** * Keep invalid value when input blur. */ diff --git a/src/components/carousel/Carousel.d.ts b/src/components/carousel/Carousel.d.ts index 262f4b9e2..a0803e60f 100755 --- a/src/components/carousel/Carousel.d.ts +++ b/src/components/carousel/Carousel.d.ts @@ -57,15 +57,15 @@ export interface CarouselProps { /** * Style class of the viewport container. */ - containerClass?: string | undefined; + containerClass?: any; /** * Style class of main content. */ - contentClass?: string | undefined; + contentClass?: any; /** * Style class of the indicator items. */ - indicatorsContentClass?: string | undefined; + indicatorsContentClass?: any; /** * Defines if scrolling would be infinite. */ diff --git a/src/components/cascadeselect/CascadeSelect.d.ts b/src/components/cascadeselect/CascadeSelect.d.ts index 751cc7991..fb2fe085c 100644 --- a/src/components/cascadeselect/CascadeSelect.d.ts +++ b/src/components/cascadeselect/CascadeSelect.d.ts @@ -87,7 +87,7 @@ export interface CascadeSelectProps { /** * Style class of the overlay panel. */ - panelClass?: string | undefined; + panelClass?: any; /** * Whether the dropdown is in loading state. */ diff --git a/src/components/checkbox/Checkbox.d.ts b/src/components/checkbox/Checkbox.d.ts index 9d22b82d9..5129df124 100755 --- a/src/components/checkbox/Checkbox.d.ts +++ b/src/components/checkbox/Checkbox.d.ts @@ -16,7 +16,7 @@ export interface CheckboxProps { /** * Style class of the component input field. */ - class?: string; + class?: any; /** * Inline style of the component. */ diff --git a/src/components/chips/Chips.d.ts b/src/components/chips/Chips.d.ts index a1be4dd32..c0133073d 100755 --- a/src/components/chips/Chips.d.ts +++ b/src/components/chips/Chips.d.ts @@ -42,7 +42,7 @@ export interface ChipsProps { /** * Style class of the component input field. */ - class?: string | undefined; + class?: any; /** * Inline style of the component. */ diff --git a/src/components/colorpicker/ColorPicker.d.ts b/src/components/colorpicker/ColorPicker.d.ts index ddde26c80..2dd3a081d 100755 --- a/src/components/colorpicker/ColorPicker.d.ts +++ b/src/components/colorpicker/ColorPicker.d.ts @@ -60,7 +60,7 @@ export interface ColorPickerProps { /** * Style class of the overlay panel. */ - panelClass?: string | undefined; + panelClass?: any; /** * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself. * Default value is 'body'. @@ -77,7 +77,7 @@ export declare type ColorPickerEmits = { * @param {*} value - New value. */ 'update:modelValue': (value: any) => void; - /** + /** * Callback to invoke when a chip is added. * @param {ColorPickerChangeEvent} event - Custom add event. */ diff --git a/src/components/column/Column.d.ts b/src/components/column/Column.d.ts index 0c75d6668..4b75ebfc8 100755 --- a/src/components/column/Column.d.ts +++ b/src/components/column/Column.d.ts @@ -97,7 +97,7 @@ export interface ColumnProps { /** * Style class of header, body and footer cells. */ - class?: string | undefined; + class?: any; /** * Inline style of the column header. */ @@ -105,7 +105,7 @@ export interface ColumnProps { /** * Style class of the column header. */ - headerClass?: string | undefined; + headerClass?: any; /** * Inline style of the column body. */ @@ -113,7 +113,7 @@ export interface ColumnProps { /** * Style class of the column body. */ - bodyClass?: string | undefined; + bodyClass?: any; /** * Inline style of the column footer. */ @@ -121,7 +121,7 @@ export interface ColumnProps { /** * Style class of the column footer. */ - footerClass?: string | undefined; + footerClass?: any; /** * Whether to display the filter overlay. * Default value is true. @@ -172,7 +172,7 @@ export interface ColumnProps { /** * Style class of the column filter header in row filter display. */ - filterHeaderClass?: string | undefined; + filterHeaderClass?: any; /** * Inline style of the column filter overlay. */ @@ -180,7 +180,7 @@ export interface ColumnProps { /** * Style class of the column filter overlay. */ - filterMenuClass?: string | undefined; + filterMenuClass?: any; /** * Defines column based selection mode, options are 'single' and 'multiple'. * @see ColumnSelectionModeType diff --git a/src/components/datatable/DataTable.d.ts b/src/components/datatable/DataTable.d.ts index a427b9524..4b5f9d743 100755 --- a/src/components/datatable/DataTable.d.ts +++ b/src/components/datatable/DataTable.d.ts @@ -772,7 +772,7 @@ export interface DataTableProps { /** * Style class of the table element. */ - tableClass?: string | undefined; + tableClass?: any; } export interface DataTableSlots { diff --git a/src/components/dialog/Dialog.d.ts b/src/components/dialog/Dialog.d.ts index 7e1c7b80c..f39fe354f 100755 --- a/src/components/dialog/Dialog.d.ts +++ b/src/components/dialog/Dialog.d.ts @@ -44,11 +44,11 @@ export interface DialogProps { /** * Style of the content section. */ - contentStyle?: any | undefined; + contentStyle?: any; /** * Style class of the content section. */ - contentClass?: string | undefined; + contentClass?: any; /** * When enabled dialog is displayed in RTL direction. */ diff --git a/src/components/dock/Dock.d.ts b/src/components/dock/Dock.d.ts index a16b7596f..68a2ab705 100644 --- a/src/components/dock/Dock.d.ts +++ b/src/components/dock/Dock.d.ts @@ -38,7 +38,7 @@ export interface DockProps { /** * Style class of the element. */ - class?: string | undefined; + class?: any; /** * Inline style of the element. */ diff --git a/src/components/dropdown/Dropdown.d.ts b/src/components/dropdown/Dropdown.d.ts index f01aa8647..04de6d6af 100755 --- a/src/components/dropdown/Dropdown.d.ts +++ b/src/components/dropdown/Dropdown.d.ts @@ -148,7 +148,7 @@ export interface DropdownProps { /** * Style class of the overlay panel. */ - panelClass?: string | undefined; + panelClass?: any; /** * Whether the dropdown is in loading state. */ diff --git a/src/components/fileupload/FileUpload.d.ts b/src/components/fileupload/FileUpload.d.ts index ca847e582..d01fbab3a 100755 --- a/src/components/fileupload/FileUpload.d.ts +++ b/src/components/fileupload/FileUpload.d.ts @@ -185,7 +185,7 @@ export interface FileUploadProps { /** * Style class of the component. */ - class?: string | undefined; + class?: any; } export interface FileUploadSlots { diff --git a/src/components/galleria/Galleria.d.ts b/src/components/galleria/Galleria.d.ts index b99845cfa..5c65fd52d 100755 --- a/src/components/galleria/Galleria.d.ts +++ b/src/components/galleria/Galleria.d.ts @@ -123,7 +123,7 @@ export interface GalleriaProps { /** * Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used. */ - containerClass?: string | undefined; + containerClass?: any; } export interface GalleriaSlots { diff --git a/src/components/image/Image.d.ts b/src/components/image/Image.d.ts index 5c52f85b8..632d67724 100644 --- a/src/components/image/Image.d.ts +++ b/src/components/image/Image.d.ts @@ -13,7 +13,7 @@ export interface ImageProps { /** * Style class of the image element. */ - imageClass?: string | undefined; + imageClass?: any; } export interface ImageSlots { diff --git a/src/components/inputswitch/InputSwitch.d.ts b/src/components/inputswitch/InputSwitch.d.ts index d9f0ace03..c6fcc9a3e 100755 --- a/src/components/inputswitch/InputSwitch.d.ts +++ b/src/components/inputswitch/InputSwitch.d.ts @@ -8,7 +8,7 @@ export interface InputSwitchProps { /** * Inline style of the component. */ - class?: string | undefined; + class?: any; /** * Style class of the component input field. */ diff --git a/src/components/menuitem/MenuItem.d.ts b/src/components/menuitem/MenuItem.d.ts index df8ea7f9a..8d7bc8b78 100644 --- a/src/components/menuitem/MenuItem.d.ts +++ b/src/components/menuitem/MenuItem.d.ts @@ -68,7 +68,7 @@ export interface MenuItem { /** * Style class of the menuitem. */ - class?: string | undefined; + class?: any; /** * Unique identifier of an item. */ diff --git a/src/components/multiselect/MultiSelect.d.ts b/src/components/multiselect/MultiSelect.d.ts index 5487eb26b..8895a3d0e 100755 --- a/src/components/multiselect/MultiSelect.d.ts +++ b/src/components/multiselect/MultiSelect.d.ts @@ -154,7 +154,7 @@ export interface MultiSelectProps { /** * Style class of the overlay panel. */ - panelClass?: string | undefined; + panelClass?: any; /** * Label to display after exceeding max selected labels. * Default value is '{0} items selected'. diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 356390447..10d4a8353 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -66,7 +66,7 @@ export interface PasswordProps extends InputHTMLAttributes { /** * Style class of the input field. */ - inputClass?: string | undefined; + inputClass?: any; /** * Inline style of the component. */ @@ -74,11 +74,11 @@ export interface PasswordProps extends InputHTMLAttributes { /** * Style class of the component input field. */ - class?: string | undefined; + class?: any; /** * Style class of the overlay panel. */ - panelClass?: string | undefined; + panelClass?: any; } export interface PasswordSlots { diff --git a/src/components/radiobutton/RadioButton.d.ts b/src/components/radiobutton/RadioButton.d.ts index f214ee193..0b14d5dd8 100755 --- a/src/components/radiobutton/RadioButton.d.ts +++ b/src/components/radiobutton/RadioButton.d.ts @@ -12,7 +12,7 @@ export interface RadioButtonProps { /** * Style class of the component input field. */ - class?: string; + class?: any; /** * Inline style of the component. */ diff --git a/src/components/speeddial/SpeedDial.d.ts b/src/components/speeddial/SpeedDial.d.ts index 2231bd493..6f661bfed 100644 --- a/src/components/speeddial/SpeedDial.d.ts +++ b/src/components/speeddial/SpeedDial.d.ts @@ -75,7 +75,7 @@ export interface SpeedDialProps { /** * Style class of the button element. */ - buttonClass?: string | undefined; + buttonClass?: any; /** * Inline style of the mask element. */ @@ -101,7 +101,7 @@ export interface SpeedDialProps { /** * Style class of the element. */ - class?: string | undefined; + class?: any; /** * Inline style of the element. */ diff --git a/src/components/splitbutton/SplitButton.d.ts b/src/components/splitbutton/SplitButton.d.ts index 57035e85f..a35fde0a3 100755 --- a/src/components/splitbutton/SplitButton.d.ts +++ b/src/components/splitbutton/SplitButton.d.ts @@ -35,7 +35,7 @@ export interface SplitButtonProps { /** * Style class of the component. */ - class?: string | undefined; + class?: any; /** * Inline style of the component. */ diff --git a/src/components/toast/Toast.d.ts b/src/components/toast/Toast.d.ts index 485bf9769..35f6757d3 100755 --- a/src/components/toast/Toast.d.ts +++ b/src/components/toast/Toast.d.ts @@ -37,11 +37,11 @@ export interface ToastMessageOptions { /** * Style class of the message. */ - styleClass?: string | undefined; + styleClass?: any; /** * Style class of the content. */ - contentStyleClass?: string | undefined; + contentStyleClass?: any; } export interface ToastBreakpointsType { diff --git a/src/components/treeselect/TreeSelect.d.ts b/src/components/treeselect/TreeSelect.d.ts index d534f46fb..df6e38dee 100644 --- a/src/components/treeselect/TreeSelect.d.ts +++ b/src/components/treeselect/TreeSelect.d.ts @@ -50,7 +50,7 @@ export interface TreeSelectProps { /** * Style class of the overlay panel. */ - panelClass?: string | undefined; + panelClass?: any; /** * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself. * @see TreeSelectAppendToType diff --git a/src/components/tristatecheckbox/TriStateCheckbox.d.ts b/src/components/tristatecheckbox/TriStateCheckbox.d.ts index 7cb0fcc5b..201a88278 100755 --- a/src/components/tristatecheckbox/TriStateCheckbox.d.ts +++ b/src/components/tristatecheckbox/TriStateCheckbox.d.ts @@ -12,7 +12,7 @@ export interface TriStateCheckboxProps { /** * Style class of the component. */ - class?: string; + class?: any; } export interface TriStateCheckboxSlots { diff --git a/src/components/virtualscroller/VirtualScroller.d.ts b/src/components/virtualscroller/VirtualScroller.d.ts index a456a60ce..3c8d503c1 100644 --- a/src/components/virtualscroller/VirtualScroller.d.ts +++ b/src/components/virtualscroller/VirtualScroller.d.ts @@ -94,7 +94,7 @@ export interface VirtualScrollerProps { /** * Style class of the component. */ - class?: string | undefined; + class?: any; /** * An array of objects to display. */