2022-09-12 07:13:52 +00:00
const PickListProps = [
{
2022-09-14 14:26:41 +00:00
name : 'modelValue' ,
type : 'array' ,
default : 'null' ,
description : 'Value of the component as a multidimensional array.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'selection' ,
type : 'array' ,
default : 'null' ,
description : 'Selected items in the list as a multidimensional array.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
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.'
2022-09-12 07:13:52 +00:00
} ,
2024-01-17 14:09:34 +00:00
{
name : 'autoOptionFocus' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether to focus on the first visible or selected element when the overlay panel is shown.'
} ,
2022-09-12 07:13:52 +00:00
{
2022-09-14 14:26:41 +00:00
name : 'dataKey' ,
type : 'string' ,
default : 'null' ,
description : 'Name of the field that uniquely identifies the a record in the data.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'listStyle' ,
type : 'object' ,
default : 'null' ,
description : 'Inline style of the the list element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'responsive' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether the list optimizes layout based on screen size.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'breakpoint' ,
type : 'string' ,
default : '960px' ,
description : 'The breakpoint to define the maximum width boundary when responsiveness is enabled.'
2022-09-12 07:13:52 +00:00
} ,
{
2024-05-27 06:39:11 +00:00
name : 'striped' ,
2022-09-14 14:26:41 +00:00
type : 'boolean' ,
default : 'false' ,
description : 'Whether to displays rows with alternating colors.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showSourceControls' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether to show buttons of source list.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'showTargetControls' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether to show buttons of target list.'
2023-05-09 22:03:24 +00:00
} ,
{
name : 'pt' ,
type : 'any' ,
default : 'null' ,
2023-08-01 14:01:12 +00:00
description : 'Used to pass attributes to DOM elements inside the component.'
2023-07-06 13:20:37 +00:00
} ,
{
name : 'unstyled' ,
type : 'boolean' ,
default : 'false' ,
description : 'When enabled, it removes component related styles in the core.'
2022-09-12 07:13:52 +00:00
}
] ;
const PickListEvents = [
{
2022-09-14 14:26:41 +00:00
name : 'reorder' ,
description : 'Callback to invoke when the list is reordered.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.value' ,
type : 'array' ,
description : 'Ordered list'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.direction' ,
type : 'string' ,
2022-09-12 07:13:52 +00:00
description : 'Direction of the change; "up", "down", "bottom", "top"'
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.listIndex' ,
type : 'number' ,
description : 'Index of the list that is ordered, 0 represents the source and 1 represents the target list.'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'move-to-target' ,
description : 'Callback to invoke when one or more items are moved to the target list.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.items' ,
type : 'object' ,
description : 'Moved items'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'move-all-to-target' ,
description : 'Callback to invoke when all items are moved to the target list.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.items' ,
type : 'object' ,
description : 'Moved items'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'move-to-source' ,
description : 'Callback to invoke when one or more items are moved to the source list.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.items' ,
type : 'object' ,
description : 'Moved items'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'move-all-to-source' ,
description : 'Callback to invoke when all items are moved to the source list.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.items' ,
type : 'object' ,
description : 'Moved items'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'selection-change' ,
description : 'Callback to invoke when one or more items are moved to the other list.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event.originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'event.value' ,
type : 'array' ,
description : 'Selected items'
2022-09-12 07:13:52 +00:00
}
]
}
] ;
const PickListSlots = [
2023-04-18 13:42:36 +00:00
{
name : 'header' ,
description : 'Custom header template.'
} ,
2022-09-12 07:13:52 +00:00
{
2022-09-14 14:26:41 +00:00
name : 'sourceheader' ,
2023-04-07 06:47:43 +00:00
description : "Custom content for the component's source header."
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'item' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content for the item.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'targetheader' ,
2023-04-07 06:47:43 +00:00
description : "Custom content for the component's target header."
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'sourcecontrolsstart' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content before source control buttons.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'sourcecontrolsend' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content after source control buttons.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'movecontrolsstart' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content before move buttons.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'movecontrolsend' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content after move buttons.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'targetcontrolsstart' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content before target control buttons.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'targetcontrolsend' ,
2023-04-07 06:47:43 +00:00
description : 'Custom content after target control buttons.'
} ,
{
name : 'moveupicon' ,
description : 'Custom move up icon template.'
} ,
{
name : 'movetopicon' ,
description : 'Custom move top icon template.'
} ,
{
name : 'movedownicon' ,
description : 'Custom move down icon template.'
} ,
{
name : 'movebottomicon' ,
description : 'Custom move bottom icon template.'
} ,
{
name : 'movetotargeticon' ,
description : 'Custom move to target icon template.'
} ,
{
name : 'movealltotargeticon' ,
description : 'Custom move all to target icon template.'
} ,
{
name : 'movetosourceicon' ,
description : 'Custom move to source icon template.'
} ,
{
name : 'movealltosourceicon' ,
description : 'Custom move all to source icon template.'
2022-09-12 07:13:52 +00:00
}
] ;
module . exports = {
picklist : {
2022-09-14 14:26:41 +00:00
name : 'PickList' ,
description : 'PickList is used to reorder items between different lists.' ,
2022-09-12 07:13:52 +00:00
props : PickListProps ,
events : PickListEvents ,
slots : PickListSlots
}
} ;