Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
host: {
'[attr.id]': 'id',
'[attr.tabindex]': 'tabIndex',
class: 'mc-select',
'[class.mc-disabled]': 'disabled',
'[class.mc-select-invalid]': 'errorState',
'[class.mc-select-required]': 'required',
'(keydown)': 'handleKeydown($event)',
'(focus)': 'onFocus()',
'(blur)': 'onBlur()',
'(window:resize)': 'calculateHiddenItems()'
},
animations: [
mcSelectAnimations.transformPanel,
mcSelectAnimations.fadeInContent
],
providers: [
{ provide: McFormFieldControl, useExisting: McSelect },
{ provide: MC_OPTION_PARENT_COMPONENT, useExisting: McSelect }
]
})
export class McSelect extends McSelectMixinBase implements
AfterContentInit, AfterViewInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable,
HasTabIndex, McFormFieldControl, CanUpdateErrorState {
/** A name for this control that can be used by `mc-form-field`. */
controlType = 'mc-select';
hiddenItems: number = 0;
oneMoreText: string = '...ещё';
'[attr.id]': 'id',
'[attr.tabindex]': 'tabIndex',
class: 'mc-tree-select',
'[class.mc-disabled]': 'disabled',
'[class.mc-select-invalid]': 'errorState',
'[class.mc-select-required]': 'required',
'(click)': 'toggle()',
'(keydown)': 'handleKeydown($event)',
'(focus)': 'onFocus()',
'(blur)': 'onBlur()',
'(window:resize)': 'calculateHiddenItems()'
},
animations: [
mcSelectAnimations.transformPanel,
mcSelectAnimations.fadeInContent
],
providers: [
{ provide: McFormFieldControl, useExisting: McTreeSelect },
{ provide: CdkTree, useExisting: McTreeSelect }
]
})
export class McTreeSelect extends McTreeSelectMixinBase implements
AfterContentInit, AfterViewInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor,
CanDisable, HasTabIndex, McFormFieldControl, CanUpdateErrorState {
/** A name for this control that can be used by `mc-form-field`. */
controlType = 'mc-select';
hiddenItems: number = 0;
host: {
'[attr.id]': 'id',
'[tabindex]': 'tabIndex',
class: 'mc-select',
'[class.mc-disabled]': 'disabled',
'[class.mc-select-invalid]': 'errorState',
'[class.mc-select-required]': 'required',
'(keydown)': 'handleKeydown($event)',
'(focus)': 'onFocus()',
'(blur)': 'onBlur()',
'(window:resize)': 'calculateHiddenItems()'
},
animations: [
mcSelectAnimations.transformPanel,
mcSelectAnimations.fadeInContent
],
providers: [
{ provide: McFormFieldControl, useExisting: McSelect },
{ provide: MC_OPTION_PARENT_COMPONENT, useExisting: McSelect }
]
})
export class McSelect extends McSelectMixinBase implements
AfterContentInit, AfterViewInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor, CanDisable,
HasTabIndex, McFormFieldControl, CanUpdateErrorState {
/** A name for this control that can be used by `mc-form-field`. */
controlType = 'mc-select';
hiddenItems: number = 0;
host: {
'[attr.id]': 'id',
'[attr.tabindex]': 'tabIndex',
class: 'mc-tree-select',
'[class.mc-disabled]': 'disabled',
'[class.mc-select-invalid]': 'errorState',
'[class.mc-select-required]': 'required',
'(keydown)': 'handleKeydown($event)',
'(focus)': 'onFocus()',
'(blur)': 'onBlur()',
'(window:resize)': 'calculateHiddenItems()'
},
animations: [
mcSelectAnimations.transformPanel,
mcSelectAnimations.fadeInContent
],
providers: [
{ provide: McFormFieldControl, useExisting: McTreeSelect },
{ provide: CdkTree, useExisting: McTreeSelect }
]
})
export class McTreeSelect extends McTreeSelectMixinBase implements
AfterContentInit, AfterViewInit, OnChanges, OnDestroy, OnInit, DoCheck, ControlValueAccessor,
CanDisable, HasTabIndex, McFormFieldControl, CanUpdateErrorState {
/** A name for this control that can be used by `mc-form-field`. */
controlType = 'mc-select';
hiddenItems: number = 0;
oneMoreText: string = '...ещё';