Skip to content

Commit

Permalink
Fix primefaces#3440: Change style from object to CSSStyleDeclaration
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 8, 2022
1 parent 451c79a commit 35b8a13
Show file tree
Hide file tree
Showing 39 changed files with 70 additions and 70 deletions.
6 changes: 3 additions & 3 deletions components/lib/accordion/accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ interface AccordionTabProps {
children?: React.ReactNode;
className?: string;
contentClassName?: string;
contentStyle?: object;
contentStyle?: CSSStyleDeclaration;
disabled?: boolean;
header?: React.ReactNode;
headerClassName?: string;
headerStyle?: object;
headerStyle?: CSSStyleDeclaration;
headerTemplate?: AccordionTabHeaderTemplateType;
style?: object;
style?: CSSStyleDeclaration;
tabIndex: number;
}

Expand Down
6 changes: 3 additions & 3 deletions components/lib/autocomplete/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.In
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: CSSStyleDeclaration;
itemTemplate?: AutoCompleteItemTemplateType;
maxLength?: number;
minLength?: number;
Expand All @@ -74,15 +74,15 @@ export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.In
optionGroupLabel?: string;
optionGroupTemplate?: AutoCompleteOptionGroupTemplateType;
panelClassName?: string;
panelStyle?: object;
panelStyle?: CSSStyleDeclaration;
placeholder?: string;
readOnly?: boolean;
removeIcon?: IconType<AutoCompleteProps>;
scrollHeight?: string;
selectedItemTemplate?: AutoCompleteSelectedItemTemplateType;
showEmptyMessage?: boolean;
size?: number;
style?: object;
style?: CSSStyleDeclaration;
suggestions?: any[];
tabIndex?: number;
tooltip?: string;
Expand Down
6 changes: 3 additions & 3 deletions components/lib/calendar/calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export interface CalendarProps {
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: CSSStyleDeclaration;
keepInvalid?: boolean;
locale?: string;
mask?: string;
Expand All @@ -103,7 +103,7 @@ export interface CalendarProps {
name?: string;
numberOfMonths?: number;
panelClassName?: string;
panelStyle?: object;
panelStyle?: CSSStyleDeclaration;
placeholder?: string;
readOnlyInput?: boolean;
required?: boolean;
Expand All @@ -123,7 +123,7 @@ export interface CalendarProps {
stepMillisec?: number;
stepMinute?: number;
stepSecond?: number;
style?: object;
style?: CSSStyleDeclaration;
tabIndex?: number;
timeOnly?: boolean;
todayButtonClassName?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/cascadeselect/cascadeselect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface CascadeSelectGroupChangeParams extends CascadeSelectChangeParams {}
export interface CascadeSelectProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
id?: string;
inputRef?: React.Ref<HTMLInputElement>;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
value?: any;
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/chart/chart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ChartProps {
plugins?: any[];
width?: string;
height?: string;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
children?: React.ReactNode;
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/checkbox/checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputH
checked?: any;
trueValue?: any;
falseValue?: any;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
disabled?: boolean;
required?: boolean;
Expand Down
12 changes: 6 additions & 6 deletions components/lib/column/column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export interface ColumnProps {
alignHeader?: ColumnAlignType;
body?: ColumnBodyType;
bodyClassName?: ColumnBodyClassType;
bodyStyle?: object;
bodyStyle?: CSSStyleDeclaration;
cellEditValidatorEvent?: string;
children?: React.ReactNode;
className?: string;
Expand All @@ -207,21 +207,21 @@ export interface ColumnProps {
filterFooter?: ColumnFilterFooterType;
filterHeader?: ColumnFilterHeaderType;
filterHeaderClassName?: string;
filterHeaderStyle?: object;
filterHeaderStyle?: CSSStyleDeclaration;
filterMatchMode?: ColumnFilterMatchModeType;
filterMatchModeOptions?: ColumnFilterMatchModeOptions[];
filterMaxLength?: number;
filterMenuClassName?: string;
filterMenuStyle?: object;
filterMenuStyle?: CSSStyleDeclaration;
filterPlaceholder?: string;
filterType?: string;
footer?: ColumnFooterType;
footerClassName?: string;
footerStyle?: object;
footerStyle?: CSSStyleDeclaration;
frozen?: boolean;
header?: ColumnHeaderType;
headerClassName?: string;
headerStyle?: object;
headerStyle?: CSSStyleDeclaration;
headerTooltip?: string;
headerTooltipOptions?: TooltipOptions;
hidden?: boolean;
Expand All @@ -243,7 +243,7 @@ export interface ColumnProps {
sortField?: string;
sortable?: boolean;
sortableDisabled?: boolean;
style?: object;
style?: CSSStyleDeclaration;
cellEditValidator?(e: ColumnEventParams): boolean;
filterFunction?(value: any, filter: any, filterLocale: string, params: ColumnFilterParams): void;
onBeforeCellEditHide?(e: ColumnEventParams): void;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/confirmpopup/confirmpopup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ConfirmPopupProps {
rejectClassName?: string;
acceptClassName?: string;
className?: string;
style?: object;
style?: CSSStyleDeclaration;
appendTo?: ConfirmPopupAppendToType;
dismissable?: boolean;
footer?: ConfirmPopupTemplateType;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/datatable/datatable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ export interface DataTableProps extends Omit<React.DetailedHTMLProps<React.Input
stateKey?: string;
stateStorage?: DataTableStateStorageType;
stripedRows?: boolean;
style?: object;
style?: CSSStyleDeclaration;
tabIndex?: number;
tableClassName?: string;
tableStyle?: object;
tableStyle?: CSSStyleDeclaration;
totalRecords?: number;
virtualScrollerOptions?: VirtualScrollerProps;
cellClassName?(value: any, options: DataTableCellClassNameOptions): object | string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dataview/dataview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface DataViewLayoutOptionsChangeParams {
export interface DataViewLayoutOptionsProps {
id?: string;
layout?: DataViewLayoutType;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
onChange(e: DataViewLayoutOptionsChangeParams): void;
children?: React.ReactNode;
Expand Down
8 changes: 4 additions & 4 deletions components/lib/dialog/dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ export interface DialogProps {
closable?: boolean;
closeOnEscape?: boolean;
contentClassName?: string;
contentStyle?: object;
contentStyle?: CSSStyleDeclaration;
dismissableMask?: boolean;
draggable?: boolean;
focusOnShow?: boolean;
footer?: DialogTemplateType;
header?: DialogTemplateType;
headerClassName?: string;
headerStyle?: object;
headerStyle?: CSSStyleDeclaration;
icons?: DialogTemplateType;
id?: string;
keepInViewport?: boolean;
maskClassName?: string;
maskStyle?: object;
maskStyle?: CSSStyleDeclaration;
maximizable?: boolean;
maximized?: boolean;
minX?: number;
Expand All @@ -49,7 +49,7 @@ export interface DialogProps {
resizable?: boolean;
rtl?: boolean;
showHeader?: boolean;
style?: object;
style?: CSSStyleDeclaration;
transitionOptions?: CSSTransitionProps;
visible?: boolean;
onClick?(e: React.MouseEvent<HTMLElement>): void;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dropdown/dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface DropdownProps extends Omit<React.DetailedHTMLProps<React.InputH
valueTemplate?: DropdownValueTemplateType;
filterTemplate?: DropdownFilterTemplateType;
itemTemplate?: DropdownItemTemplateType;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
virtualScrollerOptions?: VirtualScrollerProps;
scrollHeight?: string;
Expand All @@ -81,7 +81,7 @@ export interface DropdownProps extends Omit<React.DetailedHTMLProps<React.InputH
resetFilterOnHide?: boolean;
showFilterClear?: boolean;
panelClassName?: string;
panelStyle?: object;
panelStyle?: CSSStyleDeclaration;
dataKey?: string;
inputId?: string;
showClear?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/editor/editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface EditorSelectionChangeParams {
export interface EditorProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
id?: string;
value?: string;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
placeholder?: string;
readOnly?: boolean;
Expand Down
8 changes: 4 additions & 4 deletions components/lib/fileupload/fileupload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface FileUploadOptionsType {
icon?: IconType<FileUploadProps>;
iconOnly?: boolean;
className?: string;
style?: object;
style?: CSSStyleDeclaration;
}

interface FileUploadHeaderTemplateOptions {
Expand Down Expand Up @@ -93,7 +93,7 @@ interface FileUploadProps {
maxFileSize?: number;
invalidFileSizeMessageSummary?: string;
invalidFileSizeMessageDetail?: string;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
withCredentials?: boolean;
previewWidth?: number;
Expand All @@ -105,9 +105,9 @@ interface FileUploadProps {
cancelOptions?: FileUploadOptionsType;
customUpload?: boolean;
headerClassName?: string;
headerStyle?: object;
headerStyle?: CSSStyleDeclaration;
contentClassName?: string;
contentStyle?: object;
contentStyle?: CSSStyleDeclaration;
headerTemplate?: FileUploadHeaderTemplateType;
itemTemplate?: FileUploadItemTemplateType;
emptyTemplate?: FileUploadEmptyTemplateType;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/inputnumber/inputnumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface InputNumberProps extends Omit<React.DetailedHTMLProps<React.HTM
size?: number;
inputId?: string;
autoFocus?: boolean;
inputStyle?: object;
inputStyle?: CSSStyleDeclaration;
inputClassName?: string;
tooltip?: string;
tooltipOptions?: TooltipOptions;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/inputswitch/inputswitch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface InputSwitchChangeParams {
export interface InputSwitchProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
id?: string;
inputRef?: React.Ref<HTMLInputElement>;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
inputId?: string;
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/knob/knob.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface KnobChangeParams {

export interface KnobProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
id?: string;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
value?: number;
size?: number;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/listbox/listbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface ListBoxProps extends Omit<React.DetailedHTMLProps<React.InputHT
optionGroupTemplate?: ListBoxOptionGroupTemplateType;
itemTemplate?: ListBoxItemTemplateType;
filterTemplate?: ListBoxFilterTemplateType;
listStyle?: object;
listStyle?: CSSStyleDeclaration;
listClassName?: string;
virtualScrollerOptions?: VirtualScrollerProps;
disabled?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/mention/mention.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export interface MentionProps extends Omit<React.DetailedHTMLProps<React.Textare
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: CSSStyleDeclaration;
itemTemplate?: MentionItemTemplateType;
panelClassName?: string;
panelStyle?: object;
panelStyle?: CSSStyleDeclaration;
scrollHeight?: string;
suggestions?: any[];
transitionOptions?: CSSTransitionProps;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/menuitem/menuitem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface MenuItem {
visible?: boolean;
target?: string;
separator?: boolean;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
command?(e: MenuItemCommandParams): void;
template?: MenuItemTemplateType;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/multiselect/multiselect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export interface MultiSelectProps extends Omit<React.DetailedHTMLProps<React.Inp
optionGroupChildren?: string;
optionGroupTemplate?: MultiSelectOptionGroupTemplateType;
display?: MultiSelectDisplayType;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
panelClassName?: string;
panelStyle?: object;
panelStyle?: CSSStyleDeclaration;
virtualScrollerOptions?: VirtualScrollerProps;
scrollHeight?: string;
placeholder?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/multistatecheckbox/multistatecheckbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type MultiStateCheckboxIconTemplateType = React.ReactNode | ((options: MultiStat

interface MultiStateCheckboxOption {
icon: IconType<MultiStateCheckboxProps>;
style: object;
style: CSSStyleDeclaration;
className: string;
[key: string]: any;
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/orderlist/orderlist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface OrderListFilterOptions {
export interface OrderListProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
value?: any[];
header?: React.ReactNode;
listStyle?: object;
listStyle?: CSSStyleDeclaration;
dragdrop?: boolean;
dataKey?: string;
filter?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/password/password.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type PasswordAppendToType = 'self' | HTMLElement | undefined | null;
export interface PasswordProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'onInput' | 'ref'> {
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: CSSStyleDeclaration;
inputClassName?: string;
promptLabel?: string;
weakLabel?: string;
Expand All @@ -42,7 +42,7 @@ export interface PasswordProps extends Omit<React.DetailedHTMLProps<React.InputH
tooltip?: string;
tooltipOptions?: TooltipOptions;
keyfilter?: KeyFilterType;
panelStyle?: object;
panelStyle?: CSSStyleDeclaration;
panelClassName?: string;
transitionOptions?: CSSTransitionProps;
onInput?(event: React.FormEvent<HTMLInputElement>, validatePattern: boolean): void;
Expand Down
6 changes: 3 additions & 3 deletions components/lib/picklist/picklist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ export interface PickListProps {
target?: any[];
sourceHeader?: React.ReactNode;
targetHeader?: React.ReactNode;
style?: object;
style?: CSSStyleDeclaration;
className?: string;
sourceStyle?: object;
targetStyle?: object;
sourceStyle?: CSSStyleDeclaration;
targetStyle?: CSSStyleDeclaration;
sourceSelection?: any;
targetSelection?: any;
showSourceControls?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/row/row.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

export interface RowProps {
style?: object;
style?: CSSStyleDeclaration;
className?: string;
children?: React.ReactNode;
}
Expand Down
Loading

0 comments on commit 35b8a13

Please sign in to comment.