-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #3786 - (2/2) Core: Deprecated defaultProps still used
- Loading branch information
1 parent
5de8125
commit 715981f
Showing
206 changed files
with
3,405 additions
and
2,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
import { ObjectUtils } from '../utils/Utils'; | ||
|
||
export const AccordionDefaultProps = { | ||
__TYPE: 'Accordion', | ||
id: null, | ||
activeIndex: null, | ||
className: null, | ||
style: null, | ||
multiple: false, | ||
expandIcon: 'pi pi-chevron-right', | ||
collapseIcon: 'pi pi-chevron-down', | ||
transitionOptions: null, | ||
onTabOpen: null, | ||
onTabClose: null, | ||
onTabChange: null | ||
export const AccordionBase = { | ||
defaultProps: { | ||
__TYPE: 'Accordion', | ||
id: null, | ||
activeIndex: null, | ||
className: null, | ||
style: null, | ||
multiple: false, | ||
expandIcon: 'pi pi-chevron-right', | ||
collapseIcon: 'pi pi-chevron-down', | ||
transitionOptions: null, | ||
onTabOpen: null, | ||
onTabClose: null, | ||
onTabChange: null, | ||
children: undefined | ||
}, | ||
getProps: (props) => ObjectUtils.getMergedProps(props, AccordionBase.defaultProps), | ||
getOtherProps: (props) => ObjectUtils.getDiffProps(props, AccordionBase.defaultProps) | ||
}; | ||
|
||
export const AccordionTabDefaultProps = { | ||
__TYPE: 'AccordionTab', | ||
className: null, | ||
contentClassName: null, | ||
contentStyle: null, | ||
disabled: false, | ||
header: null, | ||
headerClassName: null, | ||
headerStyle: null, | ||
headerTemplate: null, | ||
style: null, | ||
tabIndex: 0 | ||
export const AccordionTabBase = { | ||
defaultProps: { | ||
__TYPE: 'AccordionTab', | ||
className: null, | ||
contentClassName: null, | ||
contentStyle: null, | ||
disabled: false, | ||
header: null, | ||
headerClassName: null, | ||
headerStyle: null, | ||
headerTemplate: null, | ||
style: null, | ||
tabIndex: 0, | ||
children: undefined | ||
}, | ||
getCProp: (tab, name) => ObjectUtils.getComponentProp(tab, name, AccordionTabBase.defaultProps), | ||
getCProps: (tab) => ObjectUtils.getComponentProps(tab, AccordionTabBase.defaultProps), | ||
getCOtherProps: (tab) => ObjectUtils.getComponentDiffProps(tab, AccordionTabBase.defaultProps) | ||
}; | ||
|
||
export const getTabProp = (tab, name) => ObjectUtils.getProp(tab, name, AccordionTabDefaultProps); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,72 @@ | ||
export const AutoCompleteDefaultProps = { | ||
__TYPE: 'AutoComplete', | ||
id: null, | ||
appendTo: null, | ||
autoFocus: false, | ||
autoHighlight: false, | ||
className: null, | ||
completeMethod: null, | ||
delay: 300, | ||
disabled: false, | ||
dropdown: false, | ||
dropdownAriaLabel: null, | ||
dropdownAutoFocus: true, | ||
dropdownIcon: 'pi pi-chevron-down', | ||
dropdownMode: 'blank', | ||
emptyMessage: null, | ||
field: null, | ||
forceSelection: false, | ||
inputClassName: null, | ||
inputId: null, | ||
inputRef: null, | ||
inputStyle: null, | ||
itemTemplate: null, | ||
maxLength: null, | ||
minLength: 1, | ||
multiple: false, | ||
name: null, | ||
onBlur: null, | ||
onChange: null, | ||
onClear: null, | ||
onClick: null, | ||
onContextMenu: null, | ||
onDblClick: null, | ||
onDropdownClick: null, | ||
onFocus: null, | ||
onHide: null, | ||
onKeyPress: null, | ||
onKeyUp: null, | ||
onMouseDown: null, | ||
onSelect: null, | ||
onShow: null, | ||
onUnselect: null, | ||
optionGroupChildren: null, | ||
optionGroupLabel: null, | ||
optionGroupTemplate: null, | ||
panelClassName: null, | ||
panelStyle: null, | ||
placeholder: null, | ||
readOnly: false, | ||
removeIcon: 'pi pi-times-circle', | ||
scrollHeight: '200px', | ||
selectedItemTemplate: null, | ||
selectionLimit: null, | ||
showEmptyMessage: false, | ||
size: null, | ||
style: null, | ||
suggestions: null, | ||
tabIndex: null, | ||
tooltip: null, | ||
tooltipOptions: null, | ||
transitionOptions: null, | ||
type: 'text', | ||
value: null, | ||
virtualScrollerOptions: null | ||
import { ObjectUtils } from '../utils/Utils'; | ||
|
||
export const AutoCompleteBase = { | ||
defaultProps: { | ||
__TYPE: 'AutoComplete', | ||
id: null, | ||
appendTo: null, | ||
autoFocus: false, | ||
autoHighlight: false, | ||
className: null, | ||
completeMethod: null, | ||
delay: 300, | ||
disabled: false, | ||
dropdown: false, | ||
dropdownAriaLabel: null, | ||
dropdownAutoFocus: true, | ||
dropdownIcon: 'pi pi-chevron-down', | ||
dropdownMode: 'blank', | ||
emptyMessage: null, | ||
field: null, | ||
forceSelection: false, | ||
inputClassName: null, | ||
inputId: null, | ||
inputRef: null, | ||
inputStyle: null, | ||
itemTemplate: null, | ||
maxLength: null, | ||
minLength: 1, | ||
multiple: false, | ||
name: null, | ||
onBlur: null, | ||
onChange: null, | ||
onClear: null, | ||
onClick: null, | ||
onContextMenu: null, | ||
onDblClick: null, | ||
onDropdownClick: null, | ||
onFocus: null, | ||
onHide: null, | ||
onKeyPress: null, | ||
onKeyUp: null, | ||
onMouseDown: null, | ||
onSelect: null, | ||
onShow: null, | ||
onUnselect: null, | ||
optionGroupChildren: null, | ||
optionGroupLabel: null, | ||
optionGroupTemplate: null, | ||
panelClassName: null, | ||
panelStyle: null, | ||
placeholder: null, | ||
readOnly: false, | ||
removeIcon: 'pi pi-times-circle', | ||
scrollHeight: '200px', | ||
selectedItemTemplate: null, | ||
selectionLimit: null, | ||
showEmptyMessage: false, | ||
size: null, | ||
style: null, | ||
suggestions: null, | ||
tabIndex: null, | ||
tooltip: null, | ||
tooltipOptions: null, | ||
transitionOptions: null, | ||
type: 'text', | ||
value: null, | ||
virtualScrollerOptions: null, | ||
children: undefined | ||
}, | ||
getProps: (props) => ObjectUtils.getMergedProps(props, AutoCompleteBase.defaultProps), | ||
getOtherProps: (props) => ObjectUtils.getDiffProps(props, AutoCompleteBase.defaultProps) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
export const AvatarDefaultProps = { | ||
__TYPE: 'Avatar', | ||
className: null, | ||
icon: null, | ||
image: null, | ||
imageAlt: 'avatar', | ||
imageFallback: 'default', | ||
label: null, | ||
onImageError: null, | ||
shape: 'square', | ||
size: 'normal', | ||
style: null, | ||
template: null | ||
import { ObjectUtils } from '../utils/Utils'; | ||
|
||
export const AvatarBase = { | ||
defaultProps: { | ||
__TYPE: 'Avatar', | ||
className: null, | ||
icon: null, | ||
image: null, | ||
imageAlt: 'avatar', | ||
imageFallback: 'default', | ||
label: null, | ||
onImageError: null, | ||
shape: 'square', | ||
size: 'normal', | ||
style: null, | ||
template: null, | ||
children: undefined | ||
}, | ||
getProps: (props) => ObjectUtils.getMergedProps(props, AvatarBase.defaultProps), | ||
getOtherProps: (props) => ObjectUtils.getDiffProps(props, AvatarBase.defaultProps) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
export const AvatarGroupDefaultProps = { | ||
__TYPE: 'AvatarGroup', | ||
style: null, | ||
className: null | ||
import { ObjectUtils } from '../utils/Utils'; | ||
|
||
export const AvatarGroupBase = { | ||
defaultProps: { | ||
__TYPE: 'AvatarGroup', | ||
style: null, | ||
className: null, | ||
children: undefined | ||
}, | ||
getProps: (props) => ObjectUtils.getMergedProps(props, AvatarGroupBase.defaultProps), | ||
getOtherProps: (props) => ObjectUtils.getDiffProps(props, AvatarGroupBase.defaultProps) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
715981f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
primereact – ./
primereact-git-master-primetek.vercel.app
primereact-primetek.vercel.app
primereact.org