mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Lint changes
This commit is contained in:
parent
eb2de5460c
commit
4d3a071e66
291 changed files with 28450 additions and 26621 deletions
|
@ -1,170 +1,171 @@
|
|||
const PickListProps = [
|
||||
{
|
||||
name: "modelValue",
|
||||
type: "array",
|
||||
default: "null",
|
||||
description: "Value of the component as a multidimensional array."
|
||||
name: 'modelValue',
|
||||
type: 'array',
|
||||
default: 'null',
|
||||
description: 'Value of the component as a multidimensional array.'
|
||||
},
|
||||
{
|
||||
name: "selection",
|
||||
type: "array",
|
||||
default: "null",
|
||||
description: "Selected items in the list as a multidimensional array."
|
||||
name: 'selection',
|
||||
type: 'array',
|
||||
default: 'null',
|
||||
description: 'Selected items in the list as a multidimensional array.'
|
||||
},
|
||||
{
|
||||
name: "metaKeySelection",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Defines whether metaKey is requred or not for the selection. When true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically."
|
||||
name: 'metaKeySelection',
|
||||
type: 'boolean',
|
||||
default: 'true',
|
||||
description:
|
||||
'Defines whether metaKey is requred or not for the selection. When true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.'
|
||||
},
|
||||
{
|
||||
name: "dataKey",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Name of the field that uniquely identifies the a record in the data."
|
||||
name: 'dataKey',
|
||||
type: 'string',
|
||||
default: 'null',
|
||||
description: 'Name of the field that uniquely identifies the a record in the data.'
|
||||
},
|
||||
{
|
||||
name: "listStyle",
|
||||
type: "object",
|
||||
default: "null",
|
||||
description: "Inline style of the the list element."
|
||||
name: 'listStyle',
|
||||
type: 'object',
|
||||
default: 'null',
|
||||
description: 'Inline style of the the list element.'
|
||||
},
|
||||
{
|
||||
name: "responsive",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Whether the list optimizes layout based on screen size."
|
||||
name: 'responsive',
|
||||
type: 'boolean',
|
||||
default: 'true',
|
||||
description: 'Whether the list optimizes layout based on screen size.'
|
||||
},
|
||||
{
|
||||
name: "breakpoint",
|
||||
type: "string",
|
||||
default: "960px",
|
||||
description: "The breakpoint to define the maximum width boundary when responsiveness is enabled."
|
||||
name: 'breakpoint',
|
||||
type: 'string',
|
||||
default: '960px',
|
||||
description: 'The breakpoint to define the maximum width boundary when responsiveness is enabled.'
|
||||
},
|
||||
{
|
||||
name: "stripedRows",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "Whether to displays rows with alternating colors."
|
||||
name: 'stripedRows',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'Whether to displays rows with alternating colors.'
|
||||
},
|
||||
{
|
||||
name: "showSourceControls",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Whether to show buttons of source list."
|
||||
name: 'showSourceControls',
|
||||
type: 'boolean',
|
||||
default: 'true',
|
||||
description: 'Whether to show buttons of source list.'
|
||||
},
|
||||
{
|
||||
name: "showTargetControls",
|
||||
type: "boolean",
|
||||
default: "true",
|
||||
description: "Whether to show buttons of target list."
|
||||
name: 'showTargetControls',
|
||||
type: 'boolean',
|
||||
default: 'true',
|
||||
description: 'Whether to show buttons of target list.'
|
||||
}
|
||||
];
|
||||
|
||||
const PickListEvents = [
|
||||
{
|
||||
name: "reorder",
|
||||
description: "Callback to invoke when the list is reordered.",
|
||||
name: 'reorder',
|
||||
description: 'Callback to invoke when the list is reordered.',
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
name: 'event.originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: "event.value",
|
||||
type: "array",
|
||||
description: "Ordered list"
|
||||
name: 'event.value',
|
||||
type: 'array',
|
||||
description: 'Ordered list'
|
||||
},
|
||||
{
|
||||
name: "event.direction",
|
||||
type: "string",
|
||||
name: 'event.direction',
|
||||
type: 'string',
|
||||
description: 'Direction of the change; "up", "down", "bottom", "top"'
|
||||
},
|
||||
{
|
||||
name: "event.listIndex",
|
||||
type: "number",
|
||||
description: "Index of the list that is ordered, 0 represents the source and 1 represents the target list."
|
||||
name: 'event.listIndex',
|
||||
type: 'number',
|
||||
description: 'Index of the list that is ordered, 0 represents the source and 1 represents the target list.'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "move-to-target",
|
||||
description: "Callback to invoke when one or more items are moved to the target list.",
|
||||
name: 'move-to-target',
|
||||
description: 'Callback to invoke when one or more items are moved to the target list.',
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
name: 'event.originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: "event.items",
|
||||
type: "object",
|
||||
description: "Moved items"
|
||||
name: 'event.items',
|
||||
type: 'object',
|
||||
description: 'Moved items'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "move-all-to-target",
|
||||
description: "Callback to invoke when all items are moved to the target list.",
|
||||
name: 'move-all-to-target',
|
||||
description: 'Callback to invoke when all items are moved to the target list.',
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
name: 'event.originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: "event.items",
|
||||
type: "object",
|
||||
description: "Moved items"
|
||||
name: 'event.items',
|
||||
type: 'object',
|
||||
description: 'Moved items'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "move-to-source",
|
||||
description: "Callback to invoke when one or more items are moved to the source list.",
|
||||
name: 'move-to-source',
|
||||
description: 'Callback to invoke when one or more items are moved to the source list.',
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
name: 'event.originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: "event.items",
|
||||
type: "object",
|
||||
description: "Moved items"
|
||||
name: 'event.items',
|
||||
type: 'object',
|
||||
description: 'Moved items'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "move-all-to-source",
|
||||
description: "Callback to invoke when all items are moved to the source list.",
|
||||
name: 'move-all-to-source',
|
||||
description: 'Callback to invoke when all items are moved to the source list.',
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
name: 'event.originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: "event.items",
|
||||
type: "object",
|
||||
description: "Moved items"
|
||||
name: 'event.items',
|
||||
type: 'object',
|
||||
description: 'Moved items'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "selection-change",
|
||||
description: "Callback to invoke when one or more items are moved to the other list.",
|
||||
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.originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: "event.value",
|
||||
type: "array",
|
||||
description: "Selected items"
|
||||
name: 'event.value',
|
||||
type: 'array',
|
||||
description: 'Selected items'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -172,47 +173,47 @@ const PickListEvents = [
|
|||
|
||||
const PickListSlots = [
|
||||
{
|
||||
name: "sourceheader",
|
||||
name: 'sourceheader',
|
||||
description: "Custom content for the component's source header"
|
||||
},
|
||||
{
|
||||
name: "item",
|
||||
description: "Custom content for the item"
|
||||
name: 'item',
|
||||
description: 'Custom content for the item'
|
||||
},
|
||||
{
|
||||
name: "targetheader",
|
||||
name: 'targetheader',
|
||||
description: "Custom content for the component's target header"
|
||||
},
|
||||
{
|
||||
name: "sourcecontrolsstart",
|
||||
description: "Custom content before source control buttons"
|
||||
name: 'sourcecontrolsstart',
|
||||
description: 'Custom content before source control buttons'
|
||||
},
|
||||
{
|
||||
name: "sourcecontrolsend",
|
||||
description: "Custom content after source control buttons"
|
||||
name: 'sourcecontrolsend',
|
||||
description: 'Custom content after source control buttons'
|
||||
},
|
||||
{
|
||||
name: "movecontrolsstart",
|
||||
description: "Custom content before move buttons"
|
||||
name: 'movecontrolsstart',
|
||||
description: 'Custom content before move buttons'
|
||||
},
|
||||
{
|
||||
name: "movecontrolsend",
|
||||
description: "Custom content after move buttons"
|
||||
name: 'movecontrolsend',
|
||||
description: 'Custom content after move buttons'
|
||||
},
|
||||
{
|
||||
name: "targetcontrolsstart",
|
||||
description: "Custom content before target control buttons"
|
||||
name: 'targetcontrolsstart',
|
||||
description: 'Custom content before target control buttons'
|
||||
},
|
||||
{
|
||||
name: "targetcontrolsend",
|
||||
description: "Custom content after target control buttons"
|
||||
name: 'targetcontrolsend',
|
||||
description: 'Custom content after target control buttons'
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
picklist: {
|
||||
name: "PickList",
|
||||
description: "PickList is used to reorder items between different lists.",
|
||||
name: 'PickList',
|
||||
description: 'PickList is used to reorder items between different lists.',
|
||||
props: PickListProps,
|
||||
events: PickListEvents,
|
||||
slots: PickListSlots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue