Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous authored Mar 18, 2024
2 parents d9cdcbc + 7c7b8a8 commit 8ae8cf3
Show file tree
Hide file tree
Showing 36 changed files with 259 additions and 20 deletions.
155 changes: 142 additions & 13 deletions components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3638,6 +3638,14 @@
"default": "",
"description": "Inline style of the input field."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "itemTemplate",
"optional": true,
Expand Down Expand Up @@ -5930,6 +5938,14 @@
"default": "",
"description": "Inline style of the input field."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "keepInvalid",
"optional": true,
Expand Down Expand Up @@ -7449,6 +7465,13 @@
"type": "IconType<CalendarProps>",
"description": "Icon to show in each of the decrement buttons."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "disabled",
"optional": true,
Expand Down Expand Up @@ -8950,6 +8973,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "itemTemplate",
"optional": true,
Expand Down Expand Up @@ -9972,6 +10003,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "name",
"optional": true,
Expand Down Expand Up @@ -10612,6 +10651,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "keyfilter",
"optional": true,
Expand Down Expand Up @@ -22845,6 +22892,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "itemTemplate",
"optional": true,
Expand Down Expand Up @@ -29617,6 +29672,14 @@
"default": "false",
"description": "When present, it specifies that the element value cannot be altered."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "keyfilter",
"optional": true,
Expand Down Expand Up @@ -30038,6 +30101,14 @@
"default": "",
"description": "Inline style of the input field."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "locale",
"optional": true,
Expand Down Expand Up @@ -30319,19 +30390,6 @@
"returnType": "void",
"description": "Callback to invoke when the key pressed down."
},
{
"name": "onKeyUp",
"parameters": [
{
"name": "event",
"optional": false,
"type": "KeyboardEvent<HTMLInputElement>",
"description": "Browser event"
}
],
"returnType": "void",
"description": "Callback to invoke when the key released."
},
{
"name": "onValueChange",
"parameters": [
Expand Down Expand Up @@ -30613,6 +30671,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "name",
"optional": true,
Expand Down Expand Up @@ -30856,6 +30922,14 @@
"default": "",
"description": "Used to get the child elements of the component."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "keyfilter",
"optional": true,
Expand Down Expand Up @@ -31065,6 +31139,14 @@
"default": "",
"description": "Used to get the child elements of the component."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "keyfilter",
"optional": true,
Expand Down Expand Up @@ -31670,6 +31752,14 @@
"default": "",
"description": "When specified, filter displays with this value."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "itemTemplate",
"optional": true,
Expand Down Expand Up @@ -35098,6 +35188,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "itemCheckboxIcon",
"optional": true,
Expand Down Expand Up @@ -40521,6 +40619,13 @@
"type": "PasswordPassThroughType<HTMLAttributes<HTMLSpanElement> | SVGProps<SVGSVGElement>>",
"description": "Uses to pass attributes to the show icon's DOM element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "panel",
"optional": true,
Expand Down Expand Up @@ -43107,6 +43212,14 @@
"default": "false",
"description": "When present, it specifies that the element should be disabled."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "multiple",
"optional": true,
Expand Down Expand Up @@ -51806,6 +51919,14 @@
"default": "",
"description": "Reference of the input element."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "metaKeySelection",
"optional": true,
Expand Down Expand Up @@ -54420,6 +54541,14 @@
"default": "false",
"description": "When present, it specifies that the element value cannot be altered."
},
{
"name": "invalid",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should have invalid state style."
},
{
"name": "pt",
"optional": true,
Expand Down
2 changes: 2 additions & 0 deletions components/lib/autocomplete/AutoCompleteBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const classes = {
'p-autocomplete-dd': props.dropdown,
'p-autocomplete-multiple': props.multiple,
'p-inputwrapper-filled': props.value,
'p-invalid': props.invalid,
'p-inputwrapper-focus': focusedState
}),
container: ({ props }) =>
Expand Down Expand Up @@ -165,6 +166,7 @@ export const AutoCompleteBase = ComponentBase.extend({
inputId: null,
inputRef: null,
inputStyle: null,
invalid: false,
itemTemplate: null,
loadingIcon: null,
maxLength: null,
Expand Down
5 changes: 5 additions & 0 deletions components/lib/autocomplete/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.In
* @defaultValue 300
*/
delay?: number | undefined;
/**
* When present, it specifies that the component should have invalid state style.
* @defaultValue false
*/
invalid?: boolean | undefined;
/**
* When present, it specifies that the component should be disabled.
* @defaultValue false
Expand Down
2 changes: 2 additions & 0 deletions components/lib/calendar/CalendarBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const classes = {
classNames('p-calendar p-component p-inputwrapper', {
[`p-calendar-w-btn p-calendar-w-btn-${props.iconPos}`]: props.showIcon,
'p-calendar-disabled': props.disabled,
'p-invalid': props.invalid,
'p-calendar-timeonly': props.timeOnly,
'p-inputwrapper-filled': props.value || isFilled,
'p-inputwrapper-focus': focusedState,
Expand Down Expand Up @@ -261,6 +262,7 @@ export const CalendarBase = ComponentBase.extend({
inputMode: 'none',
inputRef: null,
inputStyle: null,
invalid: false,
keepInvalid: false,
locale: null,
mask: null,
Expand Down
5 changes: 5 additions & 0 deletions components/lib/calendar/calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,11 @@ interface CalendarBaseProps {
* Icon to show in each of the decrement buttons.
*/
decrementIcon?: IconType<CalendarProps> | undefined;
/**
* When present, it specifies that the component should have invalid state style.
* @defaultValue false
*/
invalid?: boolean | undefined;
/**
* When specified, disables the component.
* @defaultValue false
Expand Down
2 changes: 2 additions & 0 deletions components/lib/cascadeselect/CascadeSelectBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const classes = {
'p-cascadeselect p-component p-inputwrapper',
{
'p-disabled': props.disabled,
'p-invalid': props.invalid,
'p-focus': focusedState,
'p-inputwrapper-filled': props.value,
'p-inputwrapper-focus': focusedState || overlayVisibleState
Expand Down Expand Up @@ -149,6 +150,7 @@ export const CascadeSelectBase = ComponentBase.extend({
id: null,
inputId: null,
inputRef: null,
invalid: false,
itemTemplate: null,
name: null,
onBeforeHide: null,
Expand Down
5 changes: 5 additions & 0 deletions components/lib/cascadeselect/cascadeselect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ export interface CascadeSelectProps extends Omit<React.DetailedHTMLProps<React.I
* The template of items.
*/
itemTemplate?: React.ReactNode | ((option: any) => React.ReactNode) | undefined;
/**
* When present, it specifies that the component should have invalid state style.
* @defaultValue false
*/
invalid?: boolean | undefined;
/**
* When present, it specifies that the component should be disabled.
* @defaultValue false
Expand Down
1 change: 1 addition & 0 deletions components/lib/checkbox/CheckboxBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const CheckboxBase = ComponentBase.extend({
id: null,
inputId: null,
inputRef: null,
invalid: false,
name: null,
onChange: null,
onClick: null,
Expand Down
5 changes: 5 additions & 0 deletions components/lib/checkbox/checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputH
* Style class of the element.
*/
className?: string | undefined;
/**
* When present, it specifies that the component should have invalid state style.
* @defaultValue false
*/
invalid?: boolean | undefined;
/**
* When present, it specifies that the element value cannot be altered.
* @defaultValue false
Expand Down
Loading

0 comments on commit 8ae8cf3

Please sign in to comment.