Merge branch 'master' of https://github.com/primefaces/primevue
commit
a14af778f8
|
@ -43,10 +43,22 @@ const OverlayPanelProps = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const OverlayPanelEvents = [
|
||||||
|
{
|
||||||
|
name: "show",
|
||||||
|
description: "Callback to invoke before the overlay is shown."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "hide",
|
||||||
|
description: "Callback to invoke before the overlay is hidden."
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
overlaypanel: {
|
overlaypanel: {
|
||||||
name: "OverlayPanel",
|
name: "OverlayPanel",
|
||||||
description: "OverlayPanel is a container component positioned as connected to its target.",
|
description: "OverlayPanel is a container component positioned as connected to its target.",
|
||||||
props: OverlayPanelProps
|
props: OverlayPanelProps,
|
||||||
|
events: OverlayPanelEvents
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -181,6 +181,7 @@ export default {
|
||||||
'viva-dark': 'viva-dark.svg',
|
'viva-dark': 'viva-dark.svg',
|
||||||
'mira': 'mira.jpg',
|
'mira': 'mira.jpg',
|
||||||
'nano': 'nano.jpg',
|
'nano': 'nano.jpg',
|
||||||
|
'tailwind-light': 'tailwind-light.png',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -652,7 +652,7 @@ export default {
|
||||||
return filteredGroups
|
return filteredGroups
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return FilterService.filter(this.options, this.searchFields, this.filterValue, 'contains', this.filterLocale);
|
return FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -15,6 +15,8 @@ declare class OverlayPanel {
|
||||||
toggle(event: Event): void;
|
toggle(event: Event): void;
|
||||||
show(event: Event, target?: any): void;
|
show(event: Event, target?: any): void;
|
||||||
hide(): void;
|
hide(): void;
|
||||||
|
$emit(eventName: 'show'): this;
|
||||||
|
$emit(eventName: 'hide'): this;
|
||||||
$slots: {
|
$slots: {
|
||||||
'': VNode[];
|
'': VNode[];
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,6 +133,7 @@ export default {
|
||||||
};
|
};
|
||||||
|
|
||||||
OverlayEventBus.on('overlay-click', this.overlayEventListener);
|
OverlayEventBus.on('overlay-click', this.overlayEventListener);
|
||||||
|
this.$emit('show');
|
||||||
},
|
},
|
||||||
onLeave() {
|
onLeave() {
|
||||||
this.unbindOutsideClickListener();
|
this.unbindOutsideClickListener();
|
||||||
|
@ -140,6 +141,7 @@ export default {
|
||||||
this.unbindResizeListener();
|
this.unbindResizeListener();
|
||||||
OverlayEventBus.off('overlay-click', this.overlayEventListener);
|
OverlayEventBus.off('overlay-click', this.overlayEventListener);
|
||||||
this.overlayEventListener = null;
|
this.overlayEventListener = null;
|
||||||
|
this.$emit('hide');
|
||||||
},
|
},
|
||||||
onAfterLeave(el) {
|
onAfterLeave(el) {
|
||||||
if (this.autoZIndex) {
|
if (this.autoZIndex) {
|
||||||
|
|
|
@ -135,6 +135,22 @@ toggle(event) {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h5>Events</h5>
|
||||||
|
<div class="doc-tablewrapper">
|
||||||
|
<table class="doc-table">
|
||||||
|
<tr>
|
||||||
|
<td>show</td>
|
||||||
|
<td>-</td>
|
||||||
|
<td>Callback to invoke when the overlay is shown.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>hide</td>
|
||||||
|
<td>-</td>
|
||||||
|
<td>Callback to invoke when the overlay is hidden.</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h5>Styling</h5>
|
<h5>Styling</h5>
|
||||||
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
|
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
|
||||||
<div class="doc-tablewrapper">
|
<div class="doc-tablewrapper">
|
||||||
|
|
Loading…
Reference in New Issue