Lint changes

This commit is contained in:
Bahadir Sofuoglu 2022-09-14 17:26:41 +03:00
parent eb2de5460c
commit 4d3a071e66
291 changed files with 28450 additions and 26621 deletions

View file

@ -1,177 +1,178 @@
const TreeSelectProps = [
{
name: "modelValue",
type: "any",
default: "null",
description: "Value of the component."
name: 'modelValue',
type: 'any',
default: 'null',
description: 'Value of the component.'
},
{
name: "options",
type: "array",
default: "null",
description: "An array of treenodes."
name: 'options',
type: 'array',
default: 'null',
description: 'An array of treenodes.'
},
{
name: "scrollHeight",
type: "string",
default: "200px",
description: "Height of the viewport, a scrollbar is defined if height of list exceeds this value."
name: 'scrollHeight',
type: 'string',
default: '200px',
description: 'Height of the viewport, a scrollbar is defined if height of list exceeds this value.'
},
{
name: "placeholder",
type: "string",
default: "null",
description: "Label to display when there are no selections."
name: 'placeholder',
type: 'string',
default: 'null',
description: 'Label to display when there are no selections.'
},
{
name: "disabled",
type: "boolean",
default: "false",
description: "When present, it specifies that the component should be disabled."
name: 'disabled',
type: 'boolean',
default: 'false',
description: 'When present, it specifies that the component should be disabled.'
},
{
name: "tabindex",
type: "string",
default: "null",
description: "Index of the element in tabbing order."
name: 'tabindex',
type: 'string',
default: 'null',
description: 'Index of the element in tabbing order.'
},
{
name: "inputId",
type: "string",
default: "null",
description: "Identifier of the underlying input element."
name: 'inputId',
type: 'string',
default: 'null',
description: 'Identifier of the underlying input element.'
},
{
name: "inputStyle",
type: "any",
default: "null",
description: "Inline style of the input field."
name: 'inputStyle',
type: 'any',
default: 'null',
description: 'Inline style of the input field.'
},
{
name: "inputClass",
type: "string",
default: "null",
description: "Style class of the input field."
name: 'inputClass',
type: 'string',
default: 'null',
description: 'Style class of the input field.'
},
{
name: "selectionMode",
type: "string",
default: "null",
name: 'selectionMode',
type: 'string',
default: 'null',
description: 'Defines the selection mode, valid values "single", "multiple", and "checkbox".'
},
{
name: "panelClass",
type: "string",
default: "null",
description: "Style class of the overlay panel."
name: 'panelClass',
type: 'string',
default: 'null',
description: 'Style class of the overlay panel.'
},
{
name: "appendTo",
type: "string",
default: "body",
name: 'appendTo',
type: 'string',
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: "emptyMessage",
type: "string",
default: "No results found",
description: "Text to display when there are no options available. Defaults to value from PrimeVue locale configuration."
name: 'emptyMessage',
type: 'string',
default: 'No results found',
description: 'Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.'
},
{
name: "display",
type: "string",
default: "comma",
name: 'display',
type: 'string',
default: 'comma',
description: 'Defines how the selected items are displayed, valid values are "comma" and "chip".'
},
{
name: "metaKeySelection",
type: "boolean",
default: "true",
description: "Defines how multiple items can be selected, 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 how multiple items can be selected, 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: "aria-labelledby",
type: "string",
default: "null",
description: "Establishes relationships between the component and label(s) where its value should be one or more element IDs."
name: 'aria-labelledby',
type: 'string',
default: 'null',
description: 'Establishes relationships between the component and label(s) where its value should be one or more element IDs.'
},
{
name: "aria-label",
type: "string",
default: "null",
description: "Used to define a string that labels the element."
name: 'aria-label',
type: 'string',
default: 'null',
description: 'Used to define a string that labels the element.'
}
];
const TreeSelectEvents = [
{
name: "change",
description: "Callback to invoke on value change.",
name: 'change',
description: 'Callback to invoke on value change.',
arguments: [
{
name: "event",
type: "object",
description: "Selected node keys"
name: 'event',
type: 'object',
description: 'Selected node keys'
}
]
},
{
name: "before-show",
description: "Callback to invoke before the overlay is shown."
name: 'before-show',
description: 'Callback to invoke before the overlay is shown.'
},
{
name: "before-hide",
description: "Callback to invoke before the overlay is hidden."
name: 'before-hide',
description: 'Callback to invoke before the overlay is hidden.'
},
{
name: "show",
description: "Callback to invoke when the overlay is shown."
name: 'show',
description: 'Callback to invoke when the overlay is shown.'
},
{
name: "hide",
description: "Callback to invoke when the overlay is hidden."
name: 'hide',
description: 'Callback to invoke when the overlay is hidden.'
},
{
name: "node-select",
description: "Callback to invoke when a node is selected.",
name: 'node-select',
description: 'Callback to invoke when a node is selected.',
arguments: [
{
name: "node",
type: "object",
description: "Node instance"
name: 'node',
type: 'object',
description: 'Node instance'
}
]
},
{
name: "node-unselect",
description: "Callback to invoke when a node is unselected.",
name: 'node-unselect',
description: 'Callback to invoke when a node is unselected.',
arguments: [
{
name: "node",
type: "object",
description: "Node instance"
name: 'node',
type: 'object',
description: 'Node instance'
}
]
},
{
name: "node-expand",
description: "Callback to invoke when a node is expanded.",
name: 'node-expand',
description: 'Callback to invoke when a node is expanded.',
arguments: [
{
name: "node",
type: "object",
description: "Node instance"
name: 'node',
type: 'object',
description: 'Node instance'
}
]
},
{
name: "node-collapse",
description: "Callback to invoke when a node is collapsed.",
name: 'node-collapse',
description: 'Callback to invoke when a node is collapsed.',
arguments: [
{
name: "node",
type: "object",
description: "Node instance"
name: 'node',
type: 'object',
description: 'Node instance'
}
]
}
@ -179,31 +180,31 @@ const TreeSelectEvents = [
const TreeSelectSlots = [
{
name: "value",
name: 'value',
description: "Custom content for the item's value"
},
{
name: "header",
name: 'header',
description: "Custom content for the component's header"
},
{
name: "footer",
name: 'footer',
description: "Custom content for the component's footer"
},
{
name: "empty",
description: "Custom content when there is no data to display"
name: 'empty',
description: 'Custom content when there is no data to display'
},
{
name: "indicator",
description: "Custom content for the dropdown indicator"
name: 'indicator',
description: 'Custom content for the dropdown indicator'
}
];
module.exports = {
treeselect: {
name: "TreeSelect",
description: "TreeSelect is a form component to choose from hierarchical data.",
name: 'TreeSelect',
description: 'TreeSelect is a form component to choose from hierarchical data.',
props: TreeSelectProps,
events: TreeSelectEvents,
slots: TreeSelectSlots