mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Convert to PrimeVue monorepo
This commit is contained in:
parent
970ba75b06
commit
61929eae75
4144 changed files with 59008 additions and 36177 deletions
108
packages/primevue/scripts/components/organizationchart.js
Normal file
108
packages/primevue/scripts/components/organizationchart.js
Normal file
|
@ -0,0 +1,108 @@
|
|||
const OrganizationChartProps = [
|
||||
{
|
||||
name: 'value',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Value of the component.'
|
||||
},
|
||||
{
|
||||
name: 'selectionKeys',
|
||||
type: 'object',
|
||||
default: 'null',
|
||||
description: 'A map instance of key-value pairs to represented the selected nodes.'
|
||||
},
|
||||
{
|
||||
name: 'selectionMode',
|
||||
type: 'string',
|
||||
default: 'null',
|
||||
description: 'Type of the selection, valid values are "single" and "multiple".'
|
||||
},
|
||||
{
|
||||
name: 'collapsible',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'Whether the nodes can be expanded or toggled.'
|
||||
},
|
||||
{
|
||||
name: 'collapsedKeys',
|
||||
type: 'object',
|
||||
default: 'null',
|
||||
description: 'A map instance of key-value pairs to represented the collapsed nodes.'
|
||||
},
|
||||
{
|
||||
name: 'pt',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass attributes to DOM elements inside the component.'
|
||||
},
|
||||
{
|
||||
name: 'unstyled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, it removes component related styles in the core.'
|
||||
}
|
||||
];
|
||||
|
||||
const OrganizationChartEvents = [
|
||||
{
|
||||
name: 'node-select',
|
||||
description: 'Callback to invoke when a node is selected.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'node',
|
||||
type: 'object',
|
||||
description: 'Node instance'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'node-unselect',
|
||||
description: 'Callback to invoke when a node is unselected.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'node',
|
||||
type: 'object',
|
||||
description: 'Node instance'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'node-expand',
|
||||
description: 'Callback to invoke when a node is expanded.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'node',
|
||||
type: 'object',
|
||||
description: 'Node instance'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'node-collapse',
|
||||
description: 'Callback to invoke when a node is collapsed.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'node',
|
||||
type: 'object',
|
||||
description: 'Node instance'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const OrganizationChartSlots = [
|
||||
{
|
||||
name: 'toggleicon',
|
||||
description: 'Custom toggler icon template.'
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
organizationchart: {
|
||||
name: 'OrganizationChart',
|
||||
description: 'OrganizationChart visualizes hierarchical organization data.',
|
||||
props: OrganizationChartProps,
|
||||
events: OrganizationChartEvents,
|
||||
slots: OrganizationChartSlots
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue