update api-generator

pull/1361/head
Tuğçe Küçükoğlu 2021-06-14 17:03:46 +03:00
parent 2a2c97703c
commit cb659b73ef
14 changed files with 233 additions and 31 deletions

View File

@ -5,12 +5,6 @@ const AccordionTabProps = [
default: "null",
description: "Orientation of tab headers."
},
{
name: "active",
type: "boolean",
default: "null",
description: "Visibility of the content."
},
{
name: "disabled",
type: "boolean",

View File

@ -95,6 +95,18 @@ const AutoCompleteProps = [
default: "false",
description: "When present, autocomplete clears the manual input if it does not match of the suggestions to force only accepting values from the suggestions."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
},
{
name: "panelClass",
type: "string",

View File

@ -233,6 +233,18 @@ const CalendarProps = [
type: "string",
default: "null",
description: "Style class of the input field."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];

View File

@ -16,6 +16,43 @@ const CheckboxProps = [
type: "boolean",
default: "false",
description: "Allows to select a boolean value instead of multiple values."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];
const CheckboxEvents = [
{
"name": "click",
"description": "Callback to invoke on value click.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
"name": "change",
"description": "Callback to invoke on value change.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
}
];
@ -23,6 +60,7 @@ module.exports = {
checkbox: {
name: "Checkbox",
description: "Checkbox is an extension to standard checkbox element with theming.",
props: CheckboxProps
props: CheckboxProps,
events: CheckboxEvents
}
};

View File

@ -28,6 +28,18 @@ const ChipsProps = [
type: "boolean",
default: "false",
description: "Whether to allow duplicate values or not."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];

View File

@ -130,25 +130,11 @@ const DialogProps = [
const DialogEvents = [
{
name: "hide",
description: "Callback to invoke when dialog is hidden.",
arguments: [
{
name: "event",
type: "object",
description: "Event Object"
}
]
description: "Callback to invoke when dialog is hidden."
},
{
name: "show",
description: "Callback to invoke when dialog is showed.",
arguments: [
{
name: "event",
type: "object",
description: "Event Object"
}
]
description: "Callback to invoke when dialog is showed."
},
{
name: "maximize",

View File

@ -136,6 +136,18 @@ const InputNumberProps = [
type: "string",
default: "null",
description: "Style class of the input field."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];

View File

@ -4,6 +4,29 @@ const InputSwitchProps = [
type: "boolean",
default: "null",
description: "Specifies whether a inputswitch should be checked or not."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];
const InputSwitchEvents = [
{
name: "click",
description: "Callback to invoke on click."
},
{
name: "change",
description: "Callback to invoke on value change."
}
];
@ -11,6 +34,7 @@ module.exports = {
inputswitch: {
name: "InputSwitch",
description: "InputSwitch is used to select a boolean value.",
props: InputSwitchProps
props: InputSwitchProps,
events: InputSwitchEvents
}
};

View File

@ -65,6 +65,22 @@ const OrderListEvents = [
'Direction of the change; "up", "down", "bottom", "top"'
}
]
},
{
name: "selection-change",
description: "Callback to invoke when selection changes.",
arguments: [
{
name: "event.originalEvent",
type: "object",
description: "Browser event"
},
{
name: "event.value",
type: "array",
description: "Ordered list"
}
]
}
];

View File

@ -59,6 +59,18 @@ const PasswordProps = [
default: "body",
description: '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.'
},
{
name: "hideIcon",
type: "string",
default: "pi pi-eye-slash",
description: "Icon to hide displaying the password as plain text."
},
{
name: "showIcon",
type: "string",
default: "pi pi-eye",
description: "Icon to show displaying the password as plain text."
},
{
name: "inputStyle",
type: "any",
@ -72,16 +84,22 @@ const PasswordProps = [
description: "Style class of the input field."
},
{
name: "hideIcon",
name: "class",
type: "string",
default: "pi pi-eye-slash",
description: "Icon to hide displaying the password as plain text."
default: "null",
description: "Style class of the component."
},
{
name: "showIcon",
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
},
{
name: "panelClass",
type: "string",
default: "pi pi-eye",
description: "Icon to show displaying the password as plain text."
default: "null",
description: "Style class of the overlay panel."
}
];

View File

@ -133,6 +133,22 @@ const PickListEvents = [
description: "Moved items"
}
]
},
{
name: "selection-change",
description: "Callback to invoke when one or more items are moved to the other list.",
arguments: [
{
name: "event.originalEvent",
type: "object",
description: "Browser event"
},
{
name: "event.value",
type: "array",
description: "Selected items"
}
]
}
];

View File

@ -10,6 +10,43 @@ const RadioButtonProps = [
type: "any",
default: "null",
description: "Value binding of the checkbox."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];
const RadioButtonEvents = [
{
name: "click",
description: "Callback to invoke on radio button click.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
},
{
name: "change",
description: "Callback to invoke on radio button value change.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
}
];
@ -17,6 +54,7 @@ module.exports = {
radiobutton: {
name: "RadioButton",
description: "RadioButton is an extension to standard radio button element with theming.",
props: RadioButtonProps
props: RadioButtonProps,
events: RadioButtonEvents
}
};

View File

@ -34,6 +34,18 @@ const SplitButtonProps = [
type: "string",
default: "body",
description: "A valid query selector or an HTMLElement to specify where the overlay gets attached."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];

View File

@ -4,6 +4,18 @@ const TriStateCheckboxProps = [
type: "boolean",
default: "null",
description: "Value of the component."
},
{
name: "class",
type: "string",
default: "null",
description: "Style class of the component."
},
{
name: "style",
type: "any",
default: "null",
description: "Inline of the component."
}
];