Refactor #1451 - update d.ts, docs, api-generator

pull/1994/head
Tuğçe Küçükoğlu 2021-08-17 17:09:43 +03:00
parent 9e6e8633a2
commit 03d111f215
14 changed files with 85 additions and 0 deletions

View File

@ -212,6 +212,14 @@ const AutoCompleteSlots = [
{ {
name: "chip", name: "chip",
description: "Custom content for the chip display." description: "Custom content for the chip display."
},
{
name: "content",
description: "Custom content for the virtual scroller"
},
{
name: "loader",
description: "Custom content for the virtual scroller loader items"
} }
]; ];

View File

@ -275,6 +275,14 @@ const DividerSlots = [
{ {
name: "empty", name: "empty",
description: "Custom content when there is no data to display" description: "Custom content when there is no data to display"
},
{
name: "content",
description: "Custom content for the virtual scroller"
},
{
name: "loader",
description: "Custom content for the virtual scroller loader items"
} }
]; ];

View File

@ -180,6 +180,14 @@ const ListboxSlots = [
{ {
name: "empty", name: "empty",
description: "Custom content when there is no data to display" description: "Custom content when there is no data to display"
},
{
name: "content",
description: "Custom content for the virtual scroller"
},
{
name: "loader",
description: "Custom content for the virtual scroller loader items"
} }
]; ];

View File

@ -286,6 +286,14 @@ const MultiSelectSlots = [
{ {
name: "chip", name: "chip",
description: "Custom content for the chip display." description: "Custom content for the chip display."
},
{
name: "content",
description: "Custom content for the virtual scroller"
},
{
name: "loader",
description: "Custom content for the virtual scroller loader items"
} }
]; ];

View File

@ -107,6 +107,10 @@ const VirtualScrollerSlots = [
name: "item", name: "item",
description: "Content for the item" description: "Content for the item"
}, },
{
name: "content",
description: "Custom content for the component"
}
{ {
name: "loader", name: "loader",
description: "Custom content for the loader items" description: "Custom content for the loader items"

View File

@ -38,6 +38,8 @@ declare class AutoComplete {
header: VNode[]; header: VNode[];
footer: VNode[]; footer: VNode[];
chip: VNode[]; chip: VNode[];
content: VNode[];
loader: VNode[];
}; };
} }

View File

@ -51,6 +51,8 @@ declare class Dropdown {
optiongroup: VNode[]; optiongroup: VNode[];
emptyfilter: VNode[]; emptyfilter: VNode[];
empty: VNode[]; empty: VNode[];
content: VNode[];
loader: VNode[];
} }
} }

View File

@ -36,6 +36,8 @@ declare class Listbox {
optiongroup: VNode[]; optiongroup: VNode[];
emptyfilter: VNode[]; emptyfilter: VNode[];
empty: VNode[]; empty: VNode[];
content: VNode[];
loader: VNode[];
} }
} }

View File

@ -55,6 +55,8 @@ declare class MultiSelect {
option: VNode[]; option: VNode[];
optiongroup: VNode[]; optiongroup: VNode[];
chip: VNode[]; chip: VNode[];
content: VNode[];
loader: VNode[];
} }
} }

View File

@ -21,6 +21,7 @@ declare class VirtualScroller {
$emit(eventName: 'scroll-index-change', value: { first: number, last: number }): this; $emit(eventName: 'scroll-index-change', value: { first: number, last: number }): this;
$emit(eventName: 'lazy-load', value: { first: number, last: number }): this; $emit(eventName: 'lazy-load', value: { first: number, last: number }): this;
$slots: { $slots: {
content: VNode[];
items: VNode[]; items: VNode[];
loader: VNode[]; loader: VNode[];
} }

View File

@ -347,6 +347,17 @@ export default {
<tr> <tr>
<td>chip</td> <td>chip</td>
<td>value: A value in the selection</td> <td>value: A value in the selection</td>
</tr>
<tr>
<td>content</td>
<td>items: An array of objects to display for virtualscroller<br />
styleClass: Style class of the component<br />
contentRef: Referance of the content<br />
getItemOptions: Options of the items</td>
</tr>
<tr>
<td>loader</td>
<td>options: Options of the loader items for virtualscroller</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -427,6 +427,17 @@ export default {
<tr> <tr>
<td>empty</td> <td>empty</td>
<td>-</td> <td>-</td>
</tr>
<tr>
<td>content</td>
<td>items: An array of objects to display for virtualscroller<br />
styleClass: Style class of the component<br />
contentRef: Referance of the content<br />
getItemOptions: Options of the items</td>
</tr>
<tr>
<td>loader</td>
<td>options: Options of the loader items for virtualscroller</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -310,6 +310,17 @@ export default {
<tr> <tr>
<td>empty</td> <td>empty</td>
<td>-</td> <td>-</td>
</tr>
<tr>
<td>content</td>
<td>items: An array of objects to display for virtualscroller<br />
styleClass: Style class of the component<br />
contentRef: Referance of the content<br />
getItemOptions: Options of the items</td>
</tr>
<tr>
<td>loader</td>
<td>options: Options of the loader items for virtualscroller</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -278,6 +278,13 @@ export default {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<td>content</td>
<td>items: An array of objects to display.<br />
styleClass: Style class of the component<br />
contentRef: Referance of the content<br />
getItemOptions: Options of the items</td>
</tr>
<tr> <tr>
<td>item</td> <td>item</td>
<td>item: Item instance<br /> <td>item: Item instance<br />