2017-05-25 17:49:53 -06:00
|
|
|
<label [attr.for]="inputId" class="mat-checkbox-layout" #label>
|
2017-04-28 23:48:35 +03:00
|
|
|
<div class="mat-checkbox-inner-container"
|
2017-07-28 17:59:33 +03:00
|
|
|
[class.mat-checkbox-inner-container-no-side-margin]="!checkboxLabel.textContent || !checkboxLabel.textContent.trim()">
|
2016-11-30 17:07:34 -08:00
|
|
|
<input #input
|
2017-02-08 11:24:31 -08:00
|
|
|
class="mat-checkbox-input cdk-visually-hidden" type="checkbox"
|
2016-05-13 12:04:39 -07:00
|
|
|
[id]="inputId"
|
2016-09-24 00:43:20 +02:00
|
|
|
[required]="required"
|
2016-05-13 12:04:39 -07:00
|
|
|
[checked]="checked"
|
2017-09-29 22:11:08 +02:00
|
|
|
[attr.value]="value"
|
2016-05-13 12:04:39 -07:00
|
|
|
[disabled]="disabled"
|
2017-09-29 22:11:08 +02:00
|
|
|
[attr.name]="name"
|
2017-02-09 19:33:47 +01:00
|
|
|
[tabIndex]="tabIndex"
|
2016-05-13 12:04:39 -07:00
|
|
|
[indeterminate]="indeterminate"
|
2018-03-09 10:36:09 -05:00
|
|
|
[attr.aria-label]="ariaLabel || null"
|
2016-05-13 12:04:39 -07:00
|
|
|
[attr.aria-labelledby]="ariaLabelledby"
|
2017-11-20 10:15:19 -08:00
|
|
|
[attr.aria-checked]="_getAriaChecked()"
|
2016-07-07 09:32:46 -07:00
|
|
|
(change)="_onInteractionEvent($event)"
|
|
|
|
|
(click)="_onInputClick($event)">
|
2017-09-28 13:45:03 -07:00
|
|
|
<div matRipple class="mat-checkbox-ripple"
|
2017-09-21 11:20:07 -07:00
|
|
|
[matRippleTrigger]="label"
|
|
|
|
|
[matRippleDisabled]="_isRippleDisabled()"
|
2018-09-19 23:23:09 +02:00
|
|
|
[matRippleRadius]="20"
|
2018-01-24 17:00:52 +01:00
|
|
|
[matRippleCentered]="true"
|
2018-02-08 22:38:55 +01:00
|
|
|
[matRippleAnimation]="{enterDuration: 150}">
|
2018-09-19 23:23:09 +02:00
|
|
|
<div class="mat-ripple-element mat-checkbox-persistent-ripple"></div>
|
2017-11-29 20:19:32 +01:00
|
|
|
</div>
|
2017-02-08 11:24:31 -08:00
|
|
|
<div class="mat-checkbox-frame"></div>
|
|
|
|
|
<div class="mat-checkbox-background">
|
2016-03-01 10:56:28 -05:00
|
|
|
<svg version="1.1"
|
2017-08-01 23:40:07 +02:00
|
|
|
focusable="false"
|
2017-02-08 11:24:31 -08:00
|
|
|
class="mat-checkbox-checkmark"
|
2016-03-01 10:56:28 -05:00
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
xml:space="preserve">
|
2017-02-08 11:24:31 -08:00
|
|
|
<path class="mat-checkbox-checkmark-path"
|
2016-03-01 10:56:28 -05:00
|
|
|
fill="none"
|
|
|
|
|
stroke="white"
|
|
|
|
|
d="M4.1,12.7 9,17.6 20.3,6.3"/>
|
|
|
|
|
</svg>
|
|
|
|
|
<!-- Element for rendering the indeterminate state checkbox. -->
|
2017-02-08 11:24:31 -08:00
|
|
|
<div class="mat-checkbox-mixedmark"></div>
|
2016-03-01 10:56:28 -05:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-06-08 23:32:35 +02:00
|
|
|
<span class="mat-checkbox-label" #checkboxLabel (cdkObserveContent)="_onLabelTextChange()">
|
2017-05-25 17:49:53 -06:00
|
|
|
<!-- Add an invisible span so JAWS can read the label -->
|
|
|
|
|
<span style="display:none"> </span>
|
2016-03-01 10:56:28 -05:00
|
|
|
<ng-content></ng-content>
|
2016-05-13 12:04:39 -07:00
|
|
|
</span>
|
|
|
|
|
</label>
|