"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/slide-toggle/slide-toggle.ts" between
material2-7.3.5.tar.gz and material2-7.3.6.tar.gz

About: material2 offers Material Design components for Angular.

slide-toggle.ts  (material2-7.3.5):slide-toggle.ts  (material2-7.3.6)
skipping to change at line 89 skipping to change at line 89
mixinTabIndex(mixinColor(mixinDisableRipple(mixinDisabled(MatSlideToggle Base)), 'accent')); mixinTabIndex(mixinColor(mixinDisableRipple(mixinDisabled(MatSlideToggle Base)), 'accent'));
/** Represents a slidable "switch" toggle that can be moved between on and off. */ /** Represents a slidable "switch" toggle that can be moved between on and off. */
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'mat-slide-toggle', selector: 'mat-slide-toggle',
exportAs: 'matSlideToggle', exportAs: 'matSlideToggle',
host: { host: {
'class': 'mat-slide-toggle', 'class': 'mat-slide-toggle',
'[id]': 'id', '[id]': 'id',
'[attr.tabindex]': '-1', // Needs to be `-1` so it can still receive program // Needs to be `-1` so it can still receive programmatic focus.
matic focus. '[attr.tabindex]': 'disabled ? null : -1',
'[class.mat-checked]': 'checked', '[class.mat-checked]': 'checked',
'[class.mat-disabled]': 'disabled', '[class.mat-disabled]': 'disabled',
'[class.mat-slide-toggle-label-before]': 'labelPosition == "before"', '[class.mat-slide-toggle-label-before]': 'labelPosition == "before"',
'[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"', '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
'(focus)': '_inputElement.nativeElement.focus()', '(focus)': '_inputElement.nativeElement.focus()',
}, },
templateUrl: 'slide-toggle.html', templateUrl: 'slide-toggle.html',
styleUrls: ['slide-toggle.css'], styleUrls: ['slide-toggle.css'],
providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR], providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR],
inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'], inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'],
encapsulation: ViewEncapsulation.None, encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class MatSlideToggle extends _MatSlideToggleMixinBase implements OnDestro y, AfterContentInit, export class MatSlideToggle extends _MatSlideToggleMixinBase implements OnDestro y, AfterContentInit,
ControlValueAccessor, CanDisable, CanColor, HasTabIndex, CanDisableRipple { ControlV
alueAccessor,
CanDisab
le, CanColor,
HasTabIn
dex,
CanDisab
leRipple {
private onChange = (_: any) => {}; private onChange = (_: any) => {};
private onTouched = () => {}; private onTouched = () => {};
private _uniqueId: string = `mat-slide-toggle-${++nextUniqueId}`; private _uniqueId: string = `mat-slide-toggle-${++nextUniqueId}`;
private _required: boolean = false; private _required: boolean = false;
private _checked: boolean = false; private _checked: boolean = false;
/** Whether the thumb is currently being dragged. */ /** Whether the thumb is currently being dragged. */
private _dragging = false; private _dragging = false;
 End of changes. 2 change blocks. 
4 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)