@angular/material-experimental 14.0.0-rc.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2020/column-resize/column-resize-module.mjs +13 -13
- package/esm2020/column-resize/overlay-handle.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +4 -4
- package/esm2020/column-resize/resizable-directives/resizable.mjs +4 -4
- package/esm2020/column-resize/resize-strategy.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +4 -4
- package/esm2020/mdc-autocomplete/autocomplete.mjs +4 -4
- package/esm2020/mdc-autocomplete/module.mjs +5 -5
- package/esm2020/mdc-button/button-base.mjs +7 -7
- package/esm2020/mdc-button/button.mjs +9 -9
- package/esm2020/mdc-button/fab.mjs +17 -17
- package/esm2020/mdc-button/icon-button.mjs +9 -9
- package/esm2020/mdc-button/module.mjs +5 -5
- package/esm2020/mdc-card/card.mjs +43 -43
- package/esm2020/mdc-card/module.mjs +5 -5
- package/esm2020/mdc-checkbox/checkbox.mjs +29 -283
- package/esm2020/mdc-checkbox/module.mjs +5 -5
- package/esm2020/mdc-chips/chip-action.mjs +43 -77
- package/esm2020/mdc-chips/chip-edit-input.mjs +4 -4
- package/esm2020/mdc-chips/chip-grid.mjs +59 -70
- package/esm2020/mdc-chips/chip-icons.mjs +27 -41
- package/esm2020/mdc-chips/chip-input.mjs +5 -8
- package/esm2020/mdc-chips/chip-listbox.mjs +24 -66
- package/esm2020/mdc-chips/chip-option.mjs +38 -83
- package/esm2020/mdc-chips/chip-row.mjs +51 -75
- package/esm2020/mdc-chips/chip-set.mjs +117 -118
- package/esm2020/mdc-chips/chip.mjs +81 -166
- package/esm2020/mdc-chips/module.mjs +6 -6
- package/esm2020/mdc-chips/public-api.mjs +2 -2
- package/esm2020/mdc-chips/tokens.mjs +33 -0
- package/esm2020/mdc-core/option/index.mjs +5 -5
- package/esm2020/mdc-core/option/optgroup.mjs +4 -4
- package/esm2020/mdc-core/option/option.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-container.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +13 -13
- package/esm2020/mdc-dialog/dialog.mjs +4 -4
- package/esm2020/mdc-dialog/module.mjs +5 -5
- package/esm2020/mdc-form-field/directives/error.mjs +4 -4
- package/esm2020/mdc-form-field/directives/floating-label.mjs +26 -6
- package/esm2020/mdc-form-field/directives/hint.mjs +4 -4
- package/esm2020/mdc-form-field/directives/label.mjs +4 -4
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +32 -11
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +25 -46
- package/esm2020/mdc-form-field/directives/prefix.mjs +4 -4
- package/esm2020/mdc-form-field/directives/suffix.mjs +4 -4
- package/esm2020/mdc-form-field/form-field.mjs +11 -95
- package/esm2020/mdc-form-field/module.mjs +5 -5
- package/esm2020/mdc-input/input.mjs +4 -4
- package/esm2020/mdc-input/module.mjs +5 -5
- package/esm2020/mdc-list/action-list.mjs +5 -5
- package/esm2020/mdc-list/list-base.mjs +7 -15
- package/esm2020/mdc-list/list-item-sections.mjs +19 -19
- package/esm2020/mdc-list/list-option.mjs +39 -21
- package/esm2020/mdc-list/list.mjs +8 -8
- package/esm2020/mdc-list/module.mjs +5 -5
- package/esm2020/mdc-list/nav-list.mjs +5 -5
- package/esm2020/mdc-list/selection-list.mjs +124 -124
- package/esm2020/mdc-list/subheader.mjs +4 -4
- package/esm2020/mdc-menu/directives.mjs +7 -7
- package/esm2020/mdc-menu/menu-item.mjs +4 -4
- package/esm2020/mdc-menu/menu.mjs +4 -4
- package/esm2020/mdc-menu/module.mjs +5 -5
- package/esm2020/mdc-paginator/module.mjs +5 -5
- package/esm2020/mdc-paginator/paginator.mjs +4 -4
- package/esm2020/mdc-progress-bar/module.mjs +5 -5
- package/esm2020/mdc-progress-bar/progress-bar.mjs +39 -103
- package/esm2020/mdc-progress-spinner/module.mjs +5 -5
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +13 -60
- package/esm2020/mdc-radio/module.mjs +5 -5
- package/esm2020/mdc-radio/radio.mjs +9 -43
- package/esm2020/mdc-select/module.mjs +5 -5
- package/esm2020/mdc-select/select.mjs +7 -7
- package/esm2020/mdc-slide-toggle/module.mjs +5 -5
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +16 -178
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +4 -4
- package/esm2020/mdc-slider/module.mjs +5 -5
- package/esm2020/mdc-slider/slider.mjs +10 -10
- package/esm2020/mdc-snack-bar/module.mjs +5 -5
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +5 -5
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +10 -10
- package/esm2020/mdc-snack-bar/snack-bar.mjs +4 -4
- package/esm2020/mdc-table/cell.mjs +22 -22
- package/esm2020/mdc-table/module.mjs +5 -5
- package/esm2020/mdc-table/row.mjs +22 -22
- package/esm2020/mdc-table/table.mjs +9 -9
- package/esm2020/mdc-table/text-column.mjs +4 -4
- package/esm2020/mdc-tabs/ink-bar.mjs +93 -114
- package/esm2020/mdc-tabs/module.mjs +5 -5
- package/esm2020/mdc-tabs/tab-body.mjs +7 -7
- package/esm2020/mdc-tabs/tab-content.mjs +4 -4
- package/esm2020/mdc-tabs/tab-group.mjs +4 -4
- package/esm2020/mdc-tabs/tab-header.mjs +4 -4
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +10 -34
- package/esm2020/mdc-tabs/tab-label.mjs +4 -4
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +16 -25
- package/esm2020/mdc-tabs/tab.mjs +4 -4
- package/esm2020/mdc-tooltip/module.mjs +5 -5
- package/esm2020/mdc-tooltip/tooltip.mjs +8 -8
- package/esm2020/menubar/menubar-item.mjs +4 -4
- package/esm2020/menubar/menubar-module.mjs +5 -5
- package/esm2020/menubar/menubar.mjs +5 -5
- package/esm2020/popover-edit/lens-directives.mjs +10 -10
- package/esm2020/popover-edit/popover-edit-module.mjs +5 -5
- package/esm2020/popover-edit/table-directives.mjs +13 -13
- package/esm2020/selection/row-selection.mjs +4 -4
- package/esm2020/selection/select-all.mjs +4 -4
- package/esm2020/selection/selection-column.mjs +5 -5
- package/esm2020/selection/selection-module.mjs +5 -5
- package/esm2020/selection/selection-toggle.mjs +4 -4
- package/esm2020/selection/selection.mjs +4 -4
- package/esm2020/version.mjs +1 -1
- package/fesm2015/column-resize.mjs +36 -36
- package/fesm2015/column-resize.mjs.map +1 -1
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/mdc-autocomplete.mjs +13 -13
- package/fesm2015/mdc-autocomplete.mjs.map +1 -1
- package/fesm2015/mdc-button.mjs +42 -42
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +46 -46
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +34 -287
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +529 -785
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +10 -10
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +22 -22
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +118 -173
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +7 -7
- package/fesm2015/mdc-input.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +209 -395
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +16 -16
- package/fesm2015/mdc-menu.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +7 -7
- package/fesm2015/mdc-paginator.mjs.map +1 -1
- package/fesm2015/mdc-progress-bar.mjs +41 -105
- package/fesm2015/mdc-progress-bar.mjs.map +1 -1
- package/fesm2015/mdc-progress-spinner.mjs +16 -63
- package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2015/mdc-radio.mjs +13 -47
- package/fesm2015/mdc-radio.mjs.map +1 -1
- package/fesm2015/mdc-select.mjs +10 -10
- package/fesm2015/mdc-select.mjs.map +1 -1
- package/fesm2015/mdc-slide-toggle.mjs +20 -184
- package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +16 -16
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-snack-bar.mjs +23 -23
- package/fesm2015/mdc-snack-bar.mjs.map +1 -1
- package/fesm2015/mdc-table.mjs +57 -57
- package/fesm2015/mdc-table.mjs.map +1 -1
- package/fesm2015/mdc-tabs.mjs +140 -192
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +11 -11
- package/fesm2015/mdc-tooltip.mjs.map +1 -1
- package/fesm2015/menubar.mjs +10 -10
- package/fesm2015/menubar.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +25 -25
- package/fesm2015/popover-edit.mjs.map +1 -1
- package/fesm2015/selection.mjs +20 -20
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +36 -36
- package/fesm2020/column-resize.mjs.map +1 -1
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-autocomplete.mjs +13 -13
- package/fesm2020/mdc-autocomplete.mjs.map +1 -1
- package/fesm2020/mdc-button.mjs +42 -42
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +46 -46
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +34 -287
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +442 -701
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +10 -10
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +22 -22
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +110 -172
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +7 -7
- package/fesm2020/mdc-input.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +208 -384
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +16 -16
- package/fesm2020/mdc-menu.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +7 -7
- package/fesm2020/mdc-paginator.mjs.map +1 -1
- package/fesm2020/mdc-progress-bar.mjs +41 -104
- package/fesm2020/mdc-progress-bar.mjs.map +1 -1
- package/fesm2020/mdc-progress-spinner.mjs +16 -63
- package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2020/mdc-radio.mjs +13 -47
- package/fesm2020/mdc-radio.mjs.map +1 -1
- package/fesm2020/mdc-select.mjs +10 -10
- package/fesm2020/mdc-select.mjs.map +1 -1
- package/fesm2020/mdc-slide-toggle.mjs +20 -183
- package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +16 -16
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-snack-bar.mjs +23 -23
- package/fesm2020/mdc-snack-bar.mjs.map +1 -1
- package/fesm2020/mdc-table.mjs +57 -57
- package/fesm2020/mdc-table.mjs.map +1 -1
- package/fesm2020/mdc-tabs.mjs +138 -190
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +11 -11
- package/fesm2020/mdc-tooltip.mjs.map +1 -1
- package/fesm2020/menubar.mjs +10 -10
- package/fesm2020/menubar.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +25 -25
- package/fesm2020/popover-edit.mjs.map +1 -1
- package/fesm2020/selection.mjs +20 -20
- package/fesm2020/selection.mjs.map +1 -1
- package/mdc-checkbox/_checkbox-private.scss +10 -3
- package/mdc-checkbox/_checkbox-theme.scss +3 -3
- package/mdc-checkbox/index.d.ts +17 -138
- package/mdc-chips/index.d.ts +102 -162
- package/mdc-form-field/index.d.ts +12 -20
- package/mdc-list/_list-option-theme.scss +2 -2
- package/mdc-list/_list-theme.scss +3 -3
- package/mdc-list/index.d.ts +42 -66
- package/mdc-progress-bar/index.d.ts +14 -17
- package/mdc-progress-spinner/index.d.ts +5 -18
- package/mdc-radio/_radio-theme.scss +8 -2
- package/mdc-radio/index.d.ts +1 -17
- package/mdc-slide-toggle/index.d.ts +12 -73
- package/mdc-tabs/index.d.ts +14 -62
- package/mdc-theming/prebuilt/deeppurple-amber.css +1 -1
- package/mdc-theming/prebuilt/indigo-pink.css +1 -1
- package/mdc-theming/prebuilt/pink-bluegrey.css +1 -1
- package/mdc-theming/prebuilt/purple-green.css +1 -1
- package/package.json +55 -55
- package/esm2020/mdc-chips/chip-default-options.mjs +0 -11
- package/esm2020/mdc-chips/emit-event.mjs +0 -27
- package/esm2020/mdc-list/interactive-list-base.mjs +0 -196
package/mdc-checkbox/index.d.ts
CHANGED
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import { _AbstractConstructor } from '@angular/material-experimental/mdc-core';
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
3
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
1
|
import { CanColor } from '@angular/material-experimental/mdc-core';
|
|
5
2
|
import { CanDisable } from '@angular/material-experimental/mdc-core';
|
|
6
3
|
import { ChangeDetectorRef } from '@angular/core';
|
|
7
|
-
import { _Constructor } from '@angular/material-experimental/mdc-core';
|
|
8
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
9
5
|
import { ElementRef } from '@angular/core';
|
|
10
|
-
import { EventEmitter } from '@angular/core';
|
|
11
6
|
import * as i0 from '@angular/core';
|
|
12
7
|
import * as i2 from '@angular/material-experimental/mdc-core';
|
|
13
8
|
import * as i3 from '@angular/material/checkbox';
|
|
14
9
|
import { MAT_CHECKBOX_DEFAULT_OPTIONS } from '@angular/material/checkbox';
|
|
15
10
|
import { MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY } from '@angular/material/checkbox';
|
|
16
11
|
import { MAT_CHECKBOX_REQUIRED_VALIDATOR } from '@angular/material/checkbox';
|
|
12
|
+
import { _MatCheckboxBase } from '@angular/material/checkbox';
|
|
17
13
|
import { MatCheckboxClickAction } from '@angular/material/checkbox';
|
|
18
14
|
import { MatCheckboxDefaultOptions } from '@angular/material/checkbox';
|
|
19
15
|
import { MatCheckboxRequiredValidator } from '@angular/material/checkbox';
|
|
20
16
|
import { _MatCheckboxRequiredValidatorModule } from '@angular/material/checkbox';
|
|
21
|
-
import {
|
|
22
|
-
import { MDCCheckboxFoundation } from '@material/checkbox';
|
|
23
|
-
import { OnDestroy } from '@angular/core';
|
|
17
|
+
import { NgZone } from '@angular/core';
|
|
24
18
|
import { TransitionCheckState } from '@angular/material/checkbox';
|
|
25
19
|
|
|
26
20
|
declare namespace i1 {
|
|
@@ -39,140 +33,25 @@ export { MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY }
|
|
|
39
33
|
|
|
40
34
|
export { MAT_CHECKBOX_REQUIRED_VALIDATOR }
|
|
41
35
|
|
|
42
|
-
export declare class MatCheckbox extends _MatCheckboxBase implements
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
ariaLabelledby: string | null;
|
|
53
|
-
/** The 'aria-describedby' attribute is read after the element's label and field type. */
|
|
54
|
-
ariaDescribedby: string;
|
|
55
|
-
/** Whether the label should appear after or before the checkbox. Defaults to 'after'. */
|
|
56
|
-
labelPosition: 'before' | 'after';
|
|
57
|
-
/** The `name` attribute to use for the input element. */
|
|
58
|
-
name: string | null;
|
|
59
|
-
/** The `tabindex` attribute to use for the input element. */
|
|
60
|
-
tabIndex: number;
|
|
61
|
-
/** The `value` attribute to use for the input element */
|
|
62
|
-
value: string;
|
|
63
|
-
private _uniqueId;
|
|
64
|
-
/** A unique id for the checkbox. If none is supplied, it will be auto-generated. */
|
|
65
|
-
id: string;
|
|
66
|
-
/** Whether the checkbox is checked. */
|
|
67
|
-
get checked(): boolean;
|
|
68
|
-
set checked(checked: BooleanInput);
|
|
69
|
-
private _checked;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the checkbox is indeterminate. This is also known as "mixed" mode and can be used to
|
|
72
|
-
* represent a checkbox with three states, e.g. a checkbox that represents a nested list of
|
|
73
|
-
* checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately
|
|
74
|
-
* set to false.
|
|
75
|
-
*/
|
|
76
|
-
get indeterminate(): boolean;
|
|
77
|
-
set indeterminate(indeterminate: BooleanInput);
|
|
78
|
-
private _indeterminate;
|
|
79
|
-
/** Whether the checkbox is required. */
|
|
80
|
-
get required(): boolean;
|
|
81
|
-
set required(required: BooleanInput);
|
|
82
|
-
private _required;
|
|
83
|
-
/** Whether to disable the ripple on this checkbox. */
|
|
84
|
-
get disableRipple(): boolean;
|
|
85
|
-
set disableRipple(disableRipple: BooleanInput);
|
|
86
|
-
private _disableRipple;
|
|
87
|
-
/** Event emitted when the checkbox's `checked` value changes. */
|
|
88
|
-
readonly change: EventEmitter<MatCheckboxChange>;
|
|
89
|
-
/** Event emitted when the checkbox's `indeterminate` value changes. */
|
|
90
|
-
readonly indeterminateChange: EventEmitter<boolean>;
|
|
91
|
-
/** The root element for the `MDCCheckbox`. */
|
|
92
|
-
_checkbox: ElementRef<HTMLElement>;
|
|
93
|
-
/** The native input element. */
|
|
94
|
-
_nativeCheckbox: ElementRef<HTMLInputElement>;
|
|
95
|
-
/** The native label element. */
|
|
96
|
-
_label: ElementRef<HTMLElement>;
|
|
97
|
-
/** Reference to the ripple instance of the checkbox. */
|
|
98
|
-
ripple: MatRipple;
|
|
99
|
-
/** Returns the unique id for the visual hidden input. */
|
|
100
|
-
get inputId(): string;
|
|
101
|
-
/** The `MDCCheckboxFoundation` instance for this checkbox. */
|
|
102
|
-
_checkboxFoundation: MDCCheckboxFoundation;
|
|
103
|
-
/** ControlValueAccessor onChange */
|
|
104
|
-
private _cvaOnChange;
|
|
105
|
-
/** ControlValueAccessor onTouch */
|
|
106
|
-
private _cvaOnTouch;
|
|
107
|
-
/**
|
|
108
|
-
* A list of attributes that should not be modified by `MDCFoundation` classes.
|
|
109
|
-
*
|
|
110
|
-
* MDC uses animation events to determine when to update `aria-checked` which is unreliable.
|
|
111
|
-
* Therefore we disable it and handle it ourselves.
|
|
112
|
-
*/
|
|
113
|
-
private _mdcFoundationIgnoredAttrs;
|
|
114
|
-
/** The `MDCCheckboxAdapter` instance for this checkbox. */
|
|
115
|
-
private _checkboxAdapter;
|
|
116
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, tabIndex: string, _animationMode?: string | undefined, _options?: MatCheckboxDefaultOptions | undefined);
|
|
117
|
-
ngAfterViewInit(): void;
|
|
118
|
-
ngOnDestroy(): void;
|
|
119
|
-
/**
|
|
120
|
-
* Implemented as part of `ControlValueAccessor`
|
|
121
|
-
* @docs-private
|
|
122
|
-
*/
|
|
123
|
-
registerOnChange(fn: (checked: boolean) => void): void;
|
|
124
|
-
/**
|
|
125
|
-
* Implemented as part of `ControlValueAccessor`
|
|
126
|
-
* @docs-private
|
|
127
|
-
*/
|
|
128
|
-
registerOnTouched(fn: () => void): void;
|
|
129
|
-
/**
|
|
130
|
-
* Implemented as part of `ControlValueAccessor`
|
|
131
|
-
* @docs-private
|
|
132
|
-
*/
|
|
133
|
-
setDisabledState(isDisabled: boolean): void;
|
|
134
|
-
/**
|
|
135
|
-
* Implemented as part of `ControlValueAccessor`
|
|
136
|
-
* @docs-private
|
|
137
|
-
*/
|
|
138
|
-
writeValue(value: any): void;
|
|
36
|
+
export declare class MatCheckbox extends _MatCheckboxBase<MatCheckboxChange> implements ControlValueAccessor, CanColor, CanDisable {
|
|
37
|
+
protected _animationClasses: {
|
|
38
|
+
uncheckedToChecked: string;
|
|
39
|
+
uncheckedToIndeterminate: string;
|
|
40
|
+
checkedToUnchecked: string;
|
|
41
|
+
checkedToIndeterminate: string;
|
|
42
|
+
indeterminateToChecked: string;
|
|
43
|
+
indeterminateToUnchecked: string;
|
|
44
|
+
};
|
|
45
|
+
constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, tabIndex: string, animationMode?: string, options?: MatCheckboxDefaultOptions);
|
|
139
46
|
/** Focuses the checkbox. */
|
|
140
47
|
focus(): void;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
* Handles click events on the native input.
|
|
147
|
-
*
|
|
148
|
-
* Note: we must listen to the `click` event rather than the `change` event because IE & Edge do
|
|
149
|
-
* not actually change the checked state when the user clicks an indeterminate checkbox. By
|
|
150
|
-
* listening to `click` instead we can override and normalize the behavior to change the checked
|
|
151
|
-
* state like other browsers do.
|
|
152
|
-
*/
|
|
153
|
-
_onClick(): void;
|
|
154
|
-
/** Gets the value for the `aria-checked` attribute of the native input. */
|
|
155
|
-
_getAriaChecked(): 'true' | 'false' | 'mixed';
|
|
156
|
-
/**
|
|
157
|
-
* Syncs the indeterminate value with the checkbox DOM node.
|
|
158
|
-
*
|
|
159
|
-
* We sync `indeterminate` directly on the DOM node, because in Ivy the check for whether a
|
|
160
|
-
* property is supported on an element boils down to `if (propName in element)`. Domino's
|
|
161
|
-
* HTMLInputElement doesn't have an `indeterminate` property so Ivy will warn during
|
|
162
|
-
* server-side rendering.
|
|
163
|
-
*/
|
|
164
|
-
private _syncIndeterminate;
|
|
165
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckbox, [null, null, { attribute: "tabindex"; }, { optional: true; }, { optional: true; }]>;
|
|
166
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "color": "color"; "disabled": "disabled"; "ariaLabel": "aria-label"; "ariaLabelledby": "aria-labelledby"; "ariaDescribedby": "aria-describedby"; "labelPosition": "labelPosition"; "name": "name"; "tabIndex": "tabIndex"; "value": "value"; "id": "id"; "checked": "checked"; "indeterminate": "indeterminate"; "required": "required"; "disableRipple": "disableRipple"; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*"], false>;
|
|
48
|
+
protected _createChangeEvent(isChecked: boolean): MatCheckboxChange;
|
|
49
|
+
protected _getAnimationTargetElement(): HTMLInputElement;
|
|
50
|
+
_onInputClick(): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckbox, [null, null, null, { attribute: "tabindex"; }, { optional: true; }, { optional: true; }]>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false>;
|
|
167
53
|
}
|
|
168
54
|
|
|
169
|
-
/** @docs-private */
|
|
170
|
-
declare const _MatCheckboxBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & _Constructor<CanDisable> & _AbstractConstructor<CanDisable> & {
|
|
171
|
-
new (_elementRef: ElementRef): {
|
|
172
|
-
_elementRef: ElementRef;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
|
|
176
55
|
/** Change event object emitted by MatCheckbox. */
|
|
177
56
|
export declare class MatCheckboxChange {
|
|
178
57
|
/** The source MatCheckbox of the event. */
|