kopia lustrzana https://github.com/shoelace-style/shoelace
hide private methods
rodzic
114dfa3904
commit
12b0365ce0
|
@ -373,8 +373,8 @@
|
||||||
return next(content);
|
return next(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove members that don't have a description
|
// Remove members that are private or don't have a description
|
||||||
const members = component.members?.filter(member => member.description);
|
const members = component.members?.filter(member => member.description && member.privacy !== 'private');
|
||||||
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private');
|
const methods = members?.filter(prop => prop.kind === 'method' && prop.privacy !== 'private');
|
||||||
const props = members?.filter(prop => {
|
const props = members?.filter(prop => {
|
||||||
// Look for a corresponding attribute
|
// Look for a corresponding attribute
|
||||||
|
|
|
@ -96,23 +96,23 @@ export default class SlButton extends LitElement {
|
||||||
this.button.blur();
|
this.button.blur();
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleSlotChange() {
|
handleSlotChange() {
|
||||||
this.hasLabel = hasSlot(this);
|
this.hasLabel = hasSlot(this);
|
||||||
this.hasPrefix = hasSlot(this, 'prefix');
|
this.hasPrefix = hasSlot(this, 'prefix');
|
||||||
this.hasSuffix = hasSlot(this, 'suffix');
|
this.hasSuffix = hasSlot(this, 'suffix');
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleBlur() {
|
handleBlur() {
|
||||||
this.hasFocus = false;
|
this.hasFocus = false;
|
||||||
emit(this, 'sl-blur');
|
emit(this, 'sl-blur');
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleFocus() {
|
handleFocus() {
|
||||||
this.hasFocus = true;
|
this.hasFocus = true;
|
||||||
emit(this, 'sl-focus');
|
emit(this, 'sl-focus');
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleClick(event: MouseEvent) {
|
handleClick(event: MouseEvent) {
|
||||||
if (this.disabled || this.loading) {
|
if (this.disabled || this.loading) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
Ładowanie…
Reference in New Issue