mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
chore: avoid this in static context
PiperOrigin-RevId: 554933524
This commit is contained in:
parent
39ae5a6947
commit
0510496e60
@ -21,7 +21,7 @@ import {dispatchActivationClick, isActivationClick, redispatchEvent} from '../..
|
|||||||
*/
|
*/
|
||||||
export abstract class Button extends LitElement {
|
export abstract class Button extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Button);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -20,7 +20,7 @@ import {dispatchActivationClick, isActivationClick, redispatchEvent} from '../..
|
|||||||
*/
|
*/
|
||||||
export class Checkbox extends LitElement {
|
export class Checkbox extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Checkbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -22,7 +22,7 @@ export type ChipSetType = 'assist'|'suggestion'|'filter'|'input'|'';
|
|||||||
*/
|
*/
|
||||||
export class ChipSet extends LitElement {
|
export class ChipSet extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(ChipSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
get chips() {
|
get chips() {
|
||||||
|
@ -18,7 +18,7 @@ import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
|
|||||||
*/
|
*/
|
||||||
export abstract class Chip extends LitElement {
|
export abstract class Chip extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Chip);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -23,7 +23,7 @@ export type FabSize = 'medium'|'small'|'large';
|
|||||||
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
||||||
export abstract class SharedFab extends LitElement {
|
export abstract class SharedFab extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(SharedFab);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -21,7 +21,7 @@ type LinkTarget = '_blank'|'_parent'|'_self'|'_top';
|
|||||||
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
||||||
export class IconButton extends LitElement {
|
export class IconButton extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(IconButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -24,7 +24,7 @@ import {ARIA_PROPERTIES, ariaPropertyToAttribute} from './aria.js';
|
|||||||
* @example
|
* @example
|
||||||
* class XButton extends LitElement {
|
* class XButton extends LitElement {
|
||||||
* static {
|
* static {
|
||||||
* requestUpdateOnAriaChange(this);
|
* requestUpdateOnAriaChange(XButton);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* protected override render() {
|
* protected override render() {
|
||||||
|
@ -22,7 +22,7 @@ import {NavigationBarState} from './state.js';
|
|||||||
*/
|
*/
|
||||||
export class NavigationBar extends LitElement implements NavigationBarState {
|
export class NavigationBar extends LitElement implements NavigationBarState {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(NavigationBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({type: Number, attribute: 'active-index'}) activeIndex = 0;
|
@property({type: Number, attribute: 'active-index'}) activeIndex = 0;
|
||||||
|
@ -16,7 +16,7 @@ import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
|
|||||||
*/
|
*/
|
||||||
export class NavigationDrawerModal extends LitElement {
|
export class NavigationDrawerModal extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(NavigationDrawerModal);
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({type: Boolean}) opened = false;
|
@property({type: Boolean}) opened = false;
|
||||||
|
@ -18,7 +18,7 @@ import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
|
|||||||
*/
|
*/
|
||||||
export class NavigationDrawer extends LitElement {
|
export class NavigationDrawer extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(NavigationDrawer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({type: Boolean}) opened = false;
|
@property({type: Boolean}) opened = false;
|
||||||
|
@ -22,7 +22,7 @@ import {NavigationTabState} from './state.js';
|
|||||||
*/
|
*/
|
||||||
export class NavigationTab extends LitElement implements NavigationTabState {
|
export class NavigationTab extends LitElement implements NavigationTabState {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(NavigationTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({type: Boolean}) disabled = false;
|
@property({type: Boolean}) disabled = false;
|
||||||
|
@ -22,7 +22,7 @@ import {requestUpdateOnAriaChange} from '../../../internal/aria/delegate.js';
|
|||||||
*/
|
*/
|
||||||
export class SegmentedButton extends LitElement {
|
export class SegmentedButton extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(SegmentedButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({type: Boolean}) disabled = false;
|
@property({type: Boolean}) disabled = false;
|
||||||
|
@ -18,7 +18,7 @@ import {SegmentedButton} from '../../segmentedbutton/internal/segmented-button.j
|
|||||||
*/
|
*/
|
||||||
export class SegmentedButtonSet extends LitElement {
|
export class SegmentedButtonSet extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(SegmentedButtonSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
@property({type: Boolean}) multiselect = false;
|
@property({type: Boolean}) multiselect = false;
|
||||||
|
@ -39,7 +39,7 @@ function isNavigableKey(key: string): key is NavigatableValues {
|
|||||||
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
||||||
export class List extends LitElement {
|
export class List extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(List);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -34,7 +34,7 @@ export type ListItem = ListItemSelf&HTMLElement;
|
|||||||
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
||||||
export class ListItemEl extends LitElement implements ListItem {
|
export class ListItemEl extends LitElement implements ListItem {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(ListItemEl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,7 +64,7 @@ function getFocusedElement(activeDoc: Document|ShadowRoot = document):
|
|||||||
*/
|
*/
|
||||||
export abstract class Menu extends LitElement {
|
export abstract class Menu extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
@query('md-list') private readonly listElement!: List|null;
|
@query('md-list') private readonly listElement!: List|null;
|
||||||
|
@ -16,7 +16,7 @@ import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
|
|||||||
*/
|
*/
|
||||||
export abstract class Progress extends LitElement {
|
export abstract class Progress extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Progress);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@ let maskId = 0;
|
|||||||
*/
|
*/
|
||||||
export class Radio extends LitElement {
|
export class Radio extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Radio);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -28,7 +28,7 @@ import {MdRipple} from '../../ripple/ripple.js';
|
|||||||
*/
|
*/
|
||||||
export class Slider extends LitElement {
|
export class Slider extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Slider);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -22,7 +22,7 @@ import {dispatchActivationClick, isActivationClick} from '../../internal/control
|
|||||||
*/
|
*/
|
||||||
export class Switch extends LitElement {
|
export class Switch extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Switch);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -35,7 +35,7 @@ export type TabVariant = 'primary'|'secondary';
|
|||||||
*/
|
*/
|
||||||
export class Tab extends LitElement {
|
export class Tab extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(Tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
@ -40,7 +40,7 @@ export type InvalidTextFieldType =
|
|||||||
*/
|
*/
|
||||||
export abstract class TextField extends LitElement {
|
export abstract class TextField extends LitElement {
|
||||||
static {
|
static {
|
||||||
requestUpdateOnAriaChange(this);
|
requestUpdateOnAriaChange(TextField);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @nocollapse */
|
/** @nocollapse */
|
||||||
|
Loading…
Reference in New Issue
Block a user