@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
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
@include mdc-list.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
|
|
20
20
|
|
|
21
21
|
.mat-mdc-list-option {
|
|
22
|
-
@include list-option-theme.private-list-option-color-override($primary, primary);
|
|
22
|
+
@include list-option-theme.private-list-option-color-override($config, $primary, primary);
|
|
23
23
|
}
|
|
24
24
|
.mat-mdc-list-option.mat-accent {
|
|
25
|
-
@include list-option-theme.private-list-option-color-override($accent, secondary);
|
|
25
|
+
@include list-option-theme.private-list-option-color-override($config, $accent, secondary);
|
|
26
26
|
}
|
|
27
27
|
.mat-mdc-list-option.mat-warn {
|
|
28
|
-
@include list-option-theme.private-list-option-color-override($warn, error);
|
|
28
|
+
@include list-option-theme.private-list-option-color-override($config, $warn, error);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
package/mdc-list/index.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ import { InjectionToken } from '@angular/core';
|
|
|
13
13
|
import { MAT_LIST } from '@angular/material/list';
|
|
14
14
|
import { MAT_NAV_LIST } from '@angular/material/list';
|
|
15
15
|
import { MAT_SELECTION_LIST_VALUE_ACCESSOR } from '@angular/material/list';
|
|
16
|
-
import { MDCListAdapter } from '@material/list';
|
|
17
|
-
import { MDCListFoundation } from '@material/list';
|
|
18
16
|
import { NgZone } from '@angular/core';
|
|
19
17
|
import { OnChanges } from '@angular/core';
|
|
20
18
|
import { OnDestroy } from '@angular/core';
|
|
@@ -100,42 +98,6 @@ export declare class MatActionList extends MatListBase {
|
|
|
100
98
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatActionList, "mat-action-list", ["matActionList"], {}, {}, never, ["*"], false>;
|
|
101
99
|
}
|
|
102
100
|
|
|
103
|
-
declare abstract class MatInteractiveListBase<T extends MatListItemBase> extends MatListBase implements AfterViewInit, OnDestroy {
|
|
104
|
-
_element: ElementRef<HTMLElement>;
|
|
105
|
-
_handleKeydown(event: KeyboardEvent): void;
|
|
106
|
-
_handleClick(event: MouseEvent): void;
|
|
107
|
-
_handleFocusin(event: FocusEvent): void;
|
|
108
|
-
_handleFocusout(event: FocusEvent): void;
|
|
109
|
-
/** Items in the interactive list. */
|
|
110
|
-
abstract _items: QueryList<T>;
|
|
111
|
-
_itemsArr: T[];
|
|
112
|
-
_document: Document;
|
|
113
|
-
protected _foundation: MDCListFoundation;
|
|
114
|
-
protected _adapter: MDCListAdapter;
|
|
115
|
-
private _subscriptions;
|
|
116
|
-
protected constructor(_element: ElementRef<HTMLElement>, document: any);
|
|
117
|
-
protected _initWithAdapter(adapter: MDCListAdapter): void;
|
|
118
|
-
ngAfterViewInit(): void;
|
|
119
|
-
ngOnDestroy(): void;
|
|
120
|
-
protected _watchListItems(): void;
|
|
121
|
-
/**
|
|
122
|
-
* Clears the tabindex of all items so that no items are reachable through tab key.
|
|
123
|
-
* MDC intends to always have only one tabbable item that will receive focus first.
|
|
124
|
-
* This first item is selected by MDC automatically on blur or by manually invoking
|
|
125
|
-
* the `setTabindexToFirstSelectedOrFocusedItem` method.
|
|
126
|
-
*/
|
|
127
|
-
private _clearTabindexForAllItems;
|
|
128
|
-
/**
|
|
129
|
-
* Resets tabindex for all options and sets tabindex for the first selected option or
|
|
130
|
-
* previously focused item so that an item can be reached when users tab into the list.
|
|
131
|
-
*/
|
|
132
|
-
protected _resetTabindexToFirstSelectedOrFocusedItem(): void;
|
|
133
|
-
_elementAtIndex(index: number): HTMLElement | undefined;
|
|
134
|
-
_indexForElement(element: Element | null): number;
|
|
135
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatInteractiveListBase<any>, never>;
|
|
136
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatInteractiveListBase<any>, never, never, {}, {}, never, never, false>;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
101
|
export declare class MatList extends MatListBase {
|
|
140
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatList, never>;
|
|
141
103
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatList, "mat-list", ["matList"], {}, {}, never, ["*"], false>;
|
|
@@ -235,11 +197,9 @@ declare abstract class MatListItemBase implements AfterViewInit, OnDestroy, Ripp
|
|
|
235
197
|
* @docs-private
|
|
236
198
|
*/
|
|
237
199
|
get rippleDisabled(): boolean;
|
|
238
|
-
|
|
200
|
+
constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _listBase: MatListBase, _platform: Platform, globalRippleOptions?: RippleGlobalOptions, animationMode?: string);
|
|
239
201
|
ngAfterViewInit(): void;
|
|
240
202
|
ngOnDestroy(): void;
|
|
241
|
-
/** Gets the label for the list item. This is used for the typeahead. */
|
|
242
|
-
_getItemLabel(): string;
|
|
243
203
|
/** Whether the list item has icons or avatars. */
|
|
244
204
|
_hasIconOrAvatar(): boolean;
|
|
245
205
|
private _initInteractiveListItem;
|
|
@@ -345,12 +305,11 @@ export declare class MatListModule {
|
|
|
345
305
|
}
|
|
346
306
|
|
|
347
307
|
export declare class MatListOption extends MatListItemBase implements ListOption, OnInit, OnDestroy {
|
|
348
|
-
_selectionList
|
|
308
|
+
private _selectionList;
|
|
349
309
|
private _changeDetectorRef;
|
|
350
310
|
_lines: QueryList<MatListItemLine>;
|
|
351
311
|
_titles: QueryList<MatListItemTitle>;
|
|
352
312
|
_unscopedContent: ElementRef<HTMLSpanElement>;
|
|
353
|
-
_itemText: ElementRef<HTMLElement>;
|
|
354
313
|
/**
|
|
355
314
|
* Emits when the selected state of the option has changed.
|
|
356
315
|
* Use to facilitate two-data binding to the `selected` property.
|
|
@@ -376,13 +335,15 @@ export declare class MatListOption extends MatListItemBase implements ListOption
|
|
|
376
335
|
* clear the value of `selected` in the first cycle.
|
|
377
336
|
*/
|
|
378
337
|
private _inputsInitialized;
|
|
379
|
-
constructor(
|
|
338
|
+
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, _selectionList: SelectionList, platform: Platform, _changeDetectorRef: ChangeDetectorRef, globalRippleOptions?: RippleGlobalOptions, animationMode?: string);
|
|
380
339
|
ngOnInit(): void;
|
|
381
340
|
ngOnDestroy(): void;
|
|
382
341
|
/** Toggles the selection state of the option. */
|
|
383
342
|
toggle(): void;
|
|
384
343
|
/** Allows for programmatic focusing of the option. */
|
|
385
344
|
focus(): void;
|
|
345
|
+
/** Gets the text label of the list option. Used for the typeahead functionality in the list. */
|
|
346
|
+
getLabel(): string;
|
|
386
347
|
/** Whether a checkbox is shown at the given position. */
|
|
387
348
|
_hasCheckboxAt(position: MatListOptionCheckboxPosition): boolean;
|
|
388
349
|
/** Whether icons or avatars are shown at the given position. */
|
|
@@ -403,6 +364,10 @@ export declare class MatListOption extends MatListItemBase implements ListOption
|
|
|
403
364
|
* list changed.
|
|
404
365
|
*/
|
|
405
366
|
_markForCheck(): void;
|
|
367
|
+
/** Toggles the option's value based on a user interacion. */
|
|
368
|
+
_toggleOnInteraction(): void;
|
|
369
|
+
/** Sets the tabindex of the list option. */
|
|
370
|
+
_setTabindex(value: number): void;
|
|
406
371
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatListOption, [null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
407
372
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatListOption, "mat-list-option", ["matListOption"], { "checkboxPosition": "checkboxPosition"; "color": "color"; "value": "value"; "selected": "selected"; }, { "selectedChange": "selectedChange"; }, ["_lines", "_titles"], ["[matListItemAvatar],[matListItemIcon]", "[matListItemTitle]", "[matListItemLine]", "*", "mat-divider"], false>;
|
|
408
373
|
}
|
|
@@ -428,9 +393,17 @@ export declare class MatNavList extends MatListBase {
|
|
|
428
393
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatNavList, "mat-nav-list", ["matNavList"], {}, {}, never, ["*"], false>;
|
|
429
394
|
}
|
|
430
395
|
|
|
431
|
-
export declare class MatSelectionList extends
|
|
432
|
-
|
|
396
|
+
export declare class MatSelectionList extends MatListBase implements SelectionList, ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
|
|
397
|
+
_element: ElementRef<HTMLElement>;
|
|
398
|
+
private _ngZone;
|
|
433
399
|
private _initialized;
|
|
400
|
+
private _keyManager;
|
|
401
|
+
/** Emits when the list has been destroyed. */
|
|
402
|
+
private _destroyed;
|
|
403
|
+
/** Whether the list has been destroyed. */
|
|
404
|
+
private _isDestroyed;
|
|
405
|
+
/** View to model callback that should be called whenever the selected options change. */
|
|
406
|
+
private _onChange;
|
|
434
407
|
_items: QueryList<MatListOption>;
|
|
435
408
|
/** Emits a change event whenever the selected state of an option changes. */
|
|
436
409
|
readonly selectionChange: EventEmitter<MatSelectionListChange>;
|
|
@@ -445,19 +418,14 @@ export declare class MatSelectionList extends MatInteractiveListBase<MatListOpti
|
|
|
445
418
|
/** Whether selection is limited to one or multiple items (default multiple). */
|
|
446
419
|
get multiple(): boolean;
|
|
447
420
|
set multiple(value: BooleanInput);
|
|
421
|
+
private _multiple;
|
|
448
422
|
/** The currently selected options. */
|
|
449
423
|
selectedOptions: SelectionModel<MatListOption>;
|
|
450
|
-
/** View to model callback that should be called whenever the selected options change. */
|
|
451
|
-
private _onChange;
|
|
452
424
|
/** Keeps track of the currently-selected value. */
|
|
453
425
|
_value: string[] | null;
|
|
454
|
-
/** Emits when the list has been destroyed. */
|
|
455
|
-
private _destroyed;
|
|
456
426
|
/** View to model callback that should be called if the list or its options lost focus. */
|
|
457
427
|
_onTouched: () => void;
|
|
458
|
-
|
|
459
|
-
private _isDestroyed;
|
|
460
|
-
constructor(element: ElementRef<HTMLElement>, document: any);
|
|
428
|
+
constructor(_element: ElementRef<HTMLElement>, _ngZone: NgZone);
|
|
461
429
|
ngAfterViewInit(): void;
|
|
462
430
|
ngOnChanges(changes: SimpleChanges): void;
|
|
463
431
|
ngOnDestroy(): void;
|
|
@@ -479,18 +447,8 @@ export declare class MatSelectionList extends MatInteractiveListBase<MatListOpti
|
|
|
479
447
|
registerOnChange(fn: (value: any) => void): void;
|
|
480
448
|
/** Implemented as part of ControlValueAccessor. */
|
|
481
449
|
registerOnTouched(fn: () => void): void;
|
|
482
|
-
/**
|
|
483
|
-
* Resets tabindex for all options and sets tabindex for the first selected option so that
|
|
484
|
-
* it will become active when users tab into the selection-list. This will be a noop if the
|
|
485
|
-
* list is currently focused as otherwise multiple options might become reachable through tab.
|
|
486
|
-
* e.g. A user currently already focused an option. We set tabindex to a new option but the
|
|
487
|
-
* focus on the current option does persist. Pressing `TAB` then might go to the other option
|
|
488
|
-
* that received a tabindex. We can skip the reset here as the MDC foundation resets the
|
|
489
|
-
* tabindex to the first selected option automatically once the current item is blurred.
|
|
490
|
-
*/
|
|
491
|
-
private _resetTabindexForItemsIfBlurred;
|
|
450
|
+
/** Watches for changes in the selected state of the options and updates the list accordingly. */
|
|
492
451
|
private _watchForSelectionChange;
|
|
493
|
-
private _syncSelectedOptionsWithFoundation;
|
|
494
452
|
/** Sets the selected options based on the specified values. */
|
|
495
453
|
private _setOptionsFromValues;
|
|
496
454
|
/** Returns the values of the selected options. */
|
|
@@ -504,6 +462,23 @@ export declare class MatSelectionList extends MatInteractiveListBase<MatListOpti
|
|
|
504
462
|
private _setAllOptionsSelected;
|
|
505
463
|
/** The option components contained within this selection-list. */
|
|
506
464
|
get options(): QueryList<MatListOption>;
|
|
465
|
+
/** Handles keydown events within the list. */
|
|
466
|
+
_handleKeydown(event: KeyboardEvent): void;
|
|
467
|
+
/** Handles focusout events within the list. */
|
|
468
|
+
private _handleFocusout;
|
|
469
|
+
/** Handles focusin events within the list. */
|
|
470
|
+
private _handleFocusin;
|
|
471
|
+
/** Sets up the logic for maintaining the roving tabindex. */
|
|
472
|
+
private _setupRovingTabindex;
|
|
473
|
+
/**
|
|
474
|
+
* Sets an option as active.
|
|
475
|
+
* @param index Index of the active option. If set to -1, no option will be active.
|
|
476
|
+
*/
|
|
477
|
+
private _setActiveOption;
|
|
478
|
+
/** Resets the active option to the first selected option. */
|
|
479
|
+
private _resetActiveOption;
|
|
480
|
+
/** Returns whether the focus is currently within the list. */
|
|
481
|
+
private _containsFocus;
|
|
507
482
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSelectionList, never>;
|
|
508
483
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSelectionList, "mat-selection-list", ["matSelectionList"], { "color": "color"; "compareWith": "compareWith"; "multiple": "multiple"; }, { "selectionChange": "selectionChange"; }, ["_items"], ["*"], false>;
|
|
509
484
|
}
|
|
@@ -551,8 +526,9 @@ export declare interface SelectionList extends MatListBase {
|
|
|
551
526
|
selectedOptions: SelectionModel<MatListOption>;
|
|
552
527
|
compareWith: (o1: any, o2: any) => boolean;
|
|
553
528
|
_value: string[] | null;
|
|
554
|
-
_reportValueChange
|
|
555
|
-
|
|
529
|
+
_reportValueChange(): void;
|
|
530
|
+
_emitChangeEvent(options: MatListOption[]): void;
|
|
531
|
+
_onTouched(): void;
|
|
556
532
|
}
|
|
557
533
|
|
|
558
534
|
export { }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _AbstractConstructor } from '@angular/material-experimental/mdc-core';
|
|
2
2
|
import { AfterViewInit } from '@angular/core';
|
|
3
3
|
import { CanColor } from '@angular/material-experimental/mdc-core';
|
|
4
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
4
5
|
import { _Constructor } from '@angular/material-experimental/mdc-core';
|
|
5
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
6
6
|
import { ElementRef } from '@angular/core';
|
|
7
7
|
import { EventEmitter } from '@angular/core';
|
|
8
8
|
import * as i0 from '@angular/core';
|
|
@@ -31,12 +31,9 @@ export { MAT_PROGRESS_BAR_LOCATION_FACTORY }
|
|
|
31
31
|
|
|
32
32
|
export declare class MatProgressBar extends _MatProgressBarBase implements AfterViewInit, OnDestroy, CanColor {
|
|
33
33
|
private _ngZone;
|
|
34
|
+
private _changeDetectorRef;
|
|
34
35
|
_animationMode?: string | undefined;
|
|
35
|
-
constructor(elementRef: ElementRef<HTMLElement>, _ngZone: NgZone,
|
|
36
|
-
/** Implements all of the logic of the MDC progress bar. */
|
|
37
|
-
private _foundation;
|
|
38
|
-
/** Adapter used by MDC to interact with the DOM. */
|
|
39
|
-
private _adapter;
|
|
36
|
+
constructor(elementRef: ElementRef<HTMLElement>, _ngZone: NgZone, _changeDetectorRef: ChangeDetectorRef, _animationMode?: string | undefined, defaults?: MatProgressBarDefaultOptions);
|
|
40
37
|
/** Flag that indicates whether NoopAnimations mode is set to true. */
|
|
41
38
|
_isNoopAnimation: boolean;
|
|
42
39
|
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
@@ -47,18 +44,12 @@ export declare class MatProgressBar extends _MatProgressBarBase implements After
|
|
|
47
44
|
get bufferValue(): number;
|
|
48
45
|
set bufferValue(v: number);
|
|
49
46
|
private _bufferValue;
|
|
50
|
-
private _primaryBar;
|
|
51
|
-
private _bufferBar;
|
|
52
47
|
/**
|
|
53
48
|
* Event emitted when animation of the primary progress bar completes. This event will not
|
|
54
49
|
* be emitted when animations are disabled, nor will it be emitted for modes with continuous
|
|
55
50
|
* animations (indeterminate and query).
|
|
56
51
|
*/
|
|
57
52
|
readonly animationEnd: EventEmitter<ProgressAnimationEnd>;
|
|
58
|
-
/** Reference to animation end subscription to be unsubscribed on destroy. */
|
|
59
|
-
private _animationEndSubscription;
|
|
60
|
-
/** Subscription to when the layout direction changes. */
|
|
61
|
-
private _dirChangeSubscription;
|
|
62
53
|
/**
|
|
63
54
|
* Mode of the progress bar.
|
|
64
55
|
*
|
|
@@ -71,16 +62,22 @@ export declare class MatProgressBar extends _MatProgressBarBase implements After
|
|
|
71
62
|
private _mode;
|
|
72
63
|
ngAfterViewInit(): void;
|
|
73
64
|
ngOnDestroy(): void;
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
|
|
65
|
+
/** Gets the transform style that should be applied to the primary bar. */
|
|
66
|
+
_getPrimaryBarTransform(): string;
|
|
67
|
+
/** Gets the `flex-basis` value that should be applied to the buffer bar. */
|
|
68
|
+
_getBufferBarFlexBasis(): string;
|
|
69
|
+
/** Returns whether the progress bar is indeterminate. */
|
|
70
|
+
_isIndeterminate(): boolean;
|
|
71
|
+
/** Event handler for `transitionend` events. */
|
|
72
|
+
private _transitionendHandler;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressBar, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
77
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressBar, "mat-progress-bar", ["matProgressBar"], { "color": "color"; "value": "value"; "bufferValue": "bufferValue"; "mode": "mode"; }, { "animationEnd": "animationEnd"; }, never, never, false>;
|
|
78
75
|
}
|
|
79
76
|
|
|
80
77
|
/** @docs-private */
|
|
81
78
|
declare const _MatProgressBarBase: _Constructor<CanColor> & _AbstractConstructor<CanColor> & {
|
|
82
|
-
new (_elementRef: ElementRef): {
|
|
83
|
-
_elementRef: ElementRef
|
|
79
|
+
new (_elementRef: ElementRef<HTMLElement>): {
|
|
80
|
+
_elementRef: ElementRef<HTMLElement>;
|
|
84
81
|
};
|
|
85
82
|
};
|
|
86
83
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { _AbstractConstructor } from '@angular/material-experimental/mdc-core';
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
3
2
|
import { CanColor } from '@angular/material-experimental/mdc-core';
|
|
4
3
|
import { _Constructor } from '@angular/material-experimental/mdc-core';
|
|
5
4
|
import { ElementRef } from '@angular/core';
|
|
@@ -9,9 +8,7 @@ import * as i3 from '@angular/material-experimental/mdc-core';
|
|
|
9
8
|
import { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS } from '@angular/material/progress-spinner';
|
|
10
9
|
import { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY } from '@angular/material/progress-spinner';
|
|
11
10
|
import { MatProgressSpinnerDefaultOptions } from '@angular/material/progress-spinner';
|
|
12
|
-
import { MDCCircularProgressFoundation } from '@material/circular-progress';
|
|
13
11
|
import { NumberInput } from '@angular/cdk/coercion';
|
|
14
|
-
import { OnDestroy } from '@angular/core';
|
|
15
12
|
|
|
16
13
|
declare namespace i1 {
|
|
17
14
|
export {
|
|
@@ -25,17 +22,12 @@ export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS }
|
|
|
25
22
|
|
|
26
23
|
export { MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY }
|
|
27
24
|
|
|
28
|
-
export declare class MatProgressSpinner extends _MatProgressSpinnerBase implements
|
|
25
|
+
export declare class MatProgressSpinner extends _MatProgressSpinnerBase implements CanColor {
|
|
29
26
|
/** Whether the _mat-animation-noopable class should be applied, disabling animations. */
|
|
30
27
|
_noopAnimations: boolean;
|
|
31
|
-
/** Implements all of the logic of the MDC circular progress. */
|
|
32
|
-
_foundation: MDCCircularProgressFoundation;
|
|
33
28
|
/** The element of the determinate spinner. */
|
|
34
29
|
_determinateCircle: ElementRef<HTMLElement>;
|
|
35
|
-
/** Adapter used by MDC to interact with the DOM. */
|
|
36
|
-
private _adapter;
|
|
37
30
|
constructor(elementRef: ElementRef<HTMLElement>, animationMode: string, defaults?: MatProgressSpinnerDefaultOptions);
|
|
38
|
-
private _mode;
|
|
39
31
|
/**
|
|
40
32
|
* Mode of the progress bar.
|
|
41
33
|
*
|
|
@@ -43,20 +35,19 @@ export declare class MatProgressSpinner extends _MatProgressSpinnerBase implemen
|
|
|
43
35
|
* 'determinate'.
|
|
44
36
|
* Mirrored to mode attribute.
|
|
45
37
|
*/
|
|
46
|
-
|
|
47
|
-
set mode(value: ProgressSpinnerMode);
|
|
48
|
-
private _value;
|
|
38
|
+
mode: ProgressSpinnerMode;
|
|
49
39
|
/** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
|
|
50
40
|
get value(): number;
|
|
51
41
|
set value(v: NumberInput);
|
|
52
|
-
private
|
|
42
|
+
private _value;
|
|
53
43
|
/** The diameter of the progress spinner (will set width and height of svg). */
|
|
54
44
|
get diameter(): number;
|
|
55
45
|
set diameter(size: NumberInput);
|
|
56
|
-
private
|
|
46
|
+
private _diameter;
|
|
57
47
|
/** Stroke width of the progress spinner. */
|
|
58
48
|
get strokeWidth(): number;
|
|
59
49
|
set strokeWidth(value: NumberInput);
|
|
50
|
+
private _strokeWidth;
|
|
60
51
|
/** The radius of the spinner, adjusted for stroke width. */
|
|
61
52
|
_circleRadius(): number;
|
|
62
53
|
/** The view box of the spinner's svg element. */
|
|
@@ -67,10 +58,6 @@ export declare class MatProgressSpinner extends _MatProgressSpinnerBase implemen
|
|
|
67
58
|
_strokeDashOffset(): number | null;
|
|
68
59
|
/** Stroke width of the circle in percent. */
|
|
69
60
|
_circleStrokeWidth(): number;
|
|
70
|
-
ngAfterViewInit(): void;
|
|
71
|
-
ngOnDestroy(): void;
|
|
72
|
-
/** Syncs the state of the progress spinner with the MDC foundation. */
|
|
73
|
-
private _syncFoundation;
|
|
74
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatProgressSpinner, [null, { optional: true; }, null]>;
|
|
75
62
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatProgressSpinner, "mat-progress-spinner, mat-spinner", ["matProgressSpinner"], { "color": "color"; "mode": "mode"; "value": "value"; "diameter": "diameter"; "strokeWidth": "strokeWidth"; }, {}, never, never, false>;
|
|
76
63
|
}
|
|
@@ -25,6 +25,12 @@
|
|
|
25
25
|
|
|
26
26
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
27
27
|
$on-surface: rgba(mdc-theme-color.$on-surface, 0.54);
|
|
28
|
+
$is-dark: map-get($config, is-dark);
|
|
29
|
+
$active-border-color: if(
|
|
30
|
+
$is-dark,
|
|
31
|
+
mat.get-color-from-palette(mat.$gray-palette, 200),
|
|
32
|
+
mat.get-color-from-palette(mat.$gray-palette, 900)
|
|
33
|
+
);
|
|
28
34
|
|
|
29
35
|
.mat-mdc-radio-button {
|
|
30
36
|
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-theme-styles-query);
|
|
@@ -33,8 +39,8 @@
|
|
|
33
39
|
// MDC applies a separate opacity to disabled buttons.
|
|
34
40
|
disabled-selected-icon-color: mdc-theme-color.$on-surface,
|
|
35
41
|
disabled-unselected-icon-color: mdc-theme-color.$on-surface,
|
|
36
|
-
unselected-focus-icon-color: $
|
|
37
|
-
unselected-hover-icon-color: $
|
|
42
|
+
unselected-focus-icon-color: $active-border-color,
|
|
43
|
+
unselected-hover-icon-color: $active-border-color,
|
|
38
44
|
unselected-icon-color: $on-surface,
|
|
39
45
|
unselected-pressed-icon-color: $on-surface,
|
|
40
46
|
));
|
package/mdc-radio/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
3
2
|
import { ElementRef } from '@angular/core';
|
|
4
3
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
@@ -12,8 +11,6 @@ import { _MatRadioButtonBase } from '@angular/material/radio';
|
|
|
12
11
|
import { MatRadioChange } from '@angular/material/radio';
|
|
13
12
|
import { MatRadioDefaultOptions } from '@angular/material/radio';
|
|
14
13
|
import { _MatRadioGroupBase } from '@angular/material/radio';
|
|
15
|
-
import { MDCRadioFoundation } from '@material/radio';
|
|
16
|
-
import { OnDestroy } from '@angular/core';
|
|
17
14
|
import { QueryList } from '@angular/core';
|
|
18
15
|
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
|
|
19
16
|
|
|
@@ -46,21 +43,8 @@ export declare const MAT_RADIO_GROUP: InjectionToken<_MatRadioGroupBase<_MatRadi
|
|
|
46
43
|
*/
|
|
47
44
|
export declare const MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR: any;
|
|
48
45
|
|
|
49
|
-
export declare class MatRadioButton extends _MatRadioButtonBase
|
|
50
|
-
private _radioAdapter;
|
|
51
|
-
_radioFoundation: MDCRadioFoundation;
|
|
52
|
-
_classes: {
|
|
53
|
-
[key: string]: boolean;
|
|
54
|
-
};
|
|
46
|
+
export declare class MatRadioButton extends _MatRadioButtonBase {
|
|
55
47
|
constructor(radioGroup: MatRadioGroup, elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher, animationMode?: string, _providerOverride?: MatRadioDefaultOptions, tabIndex?: string);
|
|
56
|
-
ngAfterViewInit(): void;
|
|
57
|
-
ngOnDestroy(): void;
|
|
58
|
-
private _setClass;
|
|
59
|
-
/**
|
|
60
|
-
* Overrides the parent function so that the foundation can be set with the current
|
|
61
|
-
* disabled state.
|
|
62
|
-
*/
|
|
63
|
-
protected _setDisabled(value: boolean): void;
|
|
64
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatRadioButton, [{ optional: true; }, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
65
49
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatRadioButton, "mat-radio-button", ["matRadioButton"], { "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false>;
|
|
66
50
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
4
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
3
|
import { ElementRef } from '@angular/core';
|
|
6
|
-
import { EventEmitter } from '@angular/core';
|
|
7
4
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
8
5
|
import * as i0 from '@angular/core';
|
|
9
6
|
import * as i2 from '@angular/material/slide-toggle';
|
|
@@ -11,10 +8,10 @@ import * as i3 from '@angular/material-experimental/mdc-core';
|
|
|
11
8
|
import * as i4 from '@angular/common';
|
|
12
9
|
import { InjectionToken } from '@angular/core';
|
|
13
10
|
import { MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR } from '@angular/material/slide-toggle';
|
|
11
|
+
import { _MatSlideToggleBase } from '@angular/material/slide-toggle';
|
|
14
12
|
import { MatSlideToggleRequiredValidator } from '@angular/material/slide-toggle';
|
|
15
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
16
|
-
import { OnDestroy } from '@angular/core';
|
|
17
13
|
import { ThemePalette } from '@angular/material-experimental/mdc-core';
|
|
14
|
+
import { Type } from '@angular/core';
|
|
18
15
|
|
|
19
16
|
declare namespace i1 {
|
|
20
17
|
export {
|
|
@@ -30,86 +27,28 @@ export declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideTo
|
|
|
30
27
|
export { MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR }
|
|
31
28
|
|
|
32
29
|
/** @docs-private */
|
|
33
|
-
export declare const MAT_SLIDE_TOGGLE_VALUE_ACCESSOR:
|
|
30
|
+
export declare const MAT_SLIDE_TOGGLE_VALUE_ACCESSOR: {
|
|
31
|
+
provide: InjectionToken<readonly ControlValueAccessor[]>;
|
|
32
|
+
useExisting: Type<any>;
|
|
33
|
+
multi: boolean;
|
|
34
|
+
};
|
|
34
35
|
|
|
35
|
-
export declare class MatSlideToggle
|
|
36
|
-
private _elementRef;
|
|
37
|
-
private _focusMonitor;
|
|
38
|
-
private _changeDetectorRef;
|
|
39
|
-
defaults: MatSlideToggleDefaultOptions;
|
|
40
|
-
private _onChange;
|
|
41
|
-
private _onTouched;
|
|
42
|
-
private _uniqueId;
|
|
43
|
-
private _required;
|
|
44
|
-
private _checked;
|
|
45
|
-
private _foundation;
|
|
46
|
-
private _adapter;
|
|
47
|
-
/** Whether the slide toggle is currently focused. */
|
|
48
|
-
_focused: boolean;
|
|
49
|
-
/** Whether noop animations are enabled. */
|
|
50
|
-
_noopAnimations: boolean;
|
|
36
|
+
export declare class MatSlideToggle extends _MatSlideToggleBase<MatSlideToggleChange> {
|
|
51
37
|
/** Unique ID for the label element. */
|
|
52
38
|
_labelId: string;
|
|
53
|
-
/** The color palette for this slide toggle. */
|
|
54
|
-
color: ThemePalette;
|
|
55
|
-
/** Name value will be applied to the button element if present. */
|
|
56
|
-
name: string | null;
|
|
57
|
-
/** A unique id for the slide-toggle button. If none is supplied, it will be auto-generated. */
|
|
58
|
-
id: string;
|
|
59
|
-
/** Tabindex for the input element. */
|
|
60
|
-
get tabIndex(): number;
|
|
61
|
-
set tabIndex(value: NumberInput);
|
|
62
|
-
private _tabIndex;
|
|
63
|
-
/** Whether the label should appear after or before the slide-toggle. Defaults to 'after'. */
|
|
64
|
-
labelPosition: 'before' | 'after';
|
|
65
|
-
/** Used to set the aria-label attribute on the underlying button element. */
|
|
66
|
-
ariaLabel: string | null;
|
|
67
|
-
/** Used to set the aria-labelledby attribute on the underlying button element. */
|
|
68
|
-
ariaLabelledby: string | null;
|
|
69
|
-
/** Used to set the aria-describedby attribute on the underlying button element. */
|
|
70
|
-
ariaDescribedby: string;
|
|
71
|
-
/** Whether the slide-toggle is required. */
|
|
72
|
-
get required(): boolean;
|
|
73
|
-
set required(value: BooleanInput);
|
|
74
|
-
/** Whether the slide-toggle element is checked or not. */
|
|
75
|
-
get checked(): boolean;
|
|
76
|
-
set checked(value: BooleanInput);
|
|
77
|
-
/** Whether to disable the ripple on this checkbox. */
|
|
78
|
-
get disableRipple(): boolean;
|
|
79
|
-
set disableRipple(disableRipple: BooleanInput);
|
|
80
|
-
private _disableRipple;
|
|
81
|
-
/** Whether the slide toggle is disabled. */
|
|
82
|
-
get disabled(): boolean;
|
|
83
|
-
set disabled(disabled: BooleanInput);
|
|
84
|
-
private _disabled;
|
|
85
|
-
/** An event will be dispatched each time the slide-toggle changes its value. */
|
|
86
|
-
readonly change: EventEmitter<MatSlideToggleChange>;
|
|
87
|
-
/** Event will be dispatched each time the slide-toggle input is toggled. */
|
|
88
|
-
readonly toggleChange: EventEmitter<void>;
|
|
89
39
|
/** Returns the unique id for the visual hidden button. */
|
|
90
40
|
get buttonId(): string;
|
|
91
41
|
/** Reference to the MDC switch element. */
|
|
92
42
|
_switchElement: ElementRef<HTMLElement>;
|
|
93
|
-
constructor(
|
|
94
|
-
ngAfterViewInit(): void;
|
|
95
|
-
ngOnDestroy(): void;
|
|
43
|
+
constructor(elementRef: ElementRef, focusMonitor: FocusMonitor, changeDetectorRef: ChangeDetectorRef, tabIndex: string, defaults: MatSlideToggleDefaultOptions, animationMode?: string);
|
|
96
44
|
/** Method being called whenever the underlying button is clicked. */
|
|
97
|
-
_handleClick(
|
|
98
|
-
/** Implemented as part of ControlValueAccessor. */
|
|
99
|
-
writeValue(value: any): void;
|
|
100
|
-
/** Implemented as part of ControlValueAccessor. */
|
|
101
|
-
registerOnChange(fn: any): void;
|
|
102
|
-
/** Implemented as part of ControlValueAccessor. */
|
|
103
|
-
registerOnTouched(fn: any): void;
|
|
104
|
-
/** Implemented as a part of ControlValueAccessor. */
|
|
105
|
-
setDisabledState(isDisabled: boolean): void;
|
|
45
|
+
_handleClick(): void;
|
|
106
46
|
/** Focuses the slide-toggle. */
|
|
107
47
|
focus(): void;
|
|
108
|
-
|
|
109
|
-
toggle(): void;
|
|
48
|
+
protected _createChangeEvent(isChecked: boolean): MatSlideToggleChange;
|
|
110
49
|
_getAriaLabelledBy(): string | null;
|
|
111
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggle, [null, null, null, { attribute: "tabindex"; }, null, { optional: true; }]>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatSlideToggle, "mat-slide-toggle", ["matSlideToggle"], { "
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSlideToggle, "mat-slide-toggle", ["matSlideToggle"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false>;
|
|
113
52
|
}
|
|
114
53
|
|
|
115
54
|
/** Change event object emitted by a MatSlideToggle. */
|
package/mdc-tabs/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { _MatTabHeaderBase } from '@angular/material/tabs';
|
|
|
31
31
|
import { MatTabHeaderPosition } from '@angular/material/tabs';
|
|
32
32
|
import { MatTabLabel as MatTabLabel_2 } from '@angular/material/tabs';
|
|
33
33
|
import { MatTabLabelWrapper as MatTabLabelWrapper_2 } from '@angular/material/tabs';
|
|
34
|
-
import { _MatTabLinkBase } from '@angular/material/tabs';
|
|
34
|
+
import { _MatTabLinkBase as _MatTabLinkBase_2 } from '@angular/material/tabs';
|
|
35
35
|
import { _MatTabNavBase } from '@angular/material/tabs';
|
|
36
36
|
import { matTabsAnimations } from '@angular/material/tabs';
|
|
37
37
|
import { MatTabsConfig } from '@angular/material/tabs';
|
|
@@ -120,56 +120,15 @@ export declare class MatInkBar {
|
|
|
120
120
|
alignToElement(element: HTMLElement): void;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
/**
|
|
124
|
-
* Implementation of MDC's sliding tab indicator (ink bar) foundation.
|
|
125
|
-
* @docs-private
|
|
126
|
-
*/
|
|
127
|
-
declare class MatInkBarFoundation {
|
|
128
|
-
private _hostElement;
|
|
129
|
-
private _document;
|
|
130
|
-
private _destroyed;
|
|
131
|
-
private _foundation;
|
|
132
|
-
private _inkBarElement;
|
|
133
|
-
private _inkBarContentElement;
|
|
134
|
-
private _fitToContent;
|
|
135
|
-
private _adapter;
|
|
136
|
-
constructor(_hostElement: HTMLElement, _document: Document);
|
|
137
|
-
/** Aligns the ink bar to the current item. */
|
|
138
|
-
activate(clientRect?: ClientRect): void;
|
|
139
|
-
/** Removes the ink bar from the current item. */
|
|
140
|
-
deactivate(): void;
|
|
141
|
-
/** Gets the ClientRect of the ink bar. */
|
|
142
|
-
computeContentClientRect(): DOMRect;
|
|
143
|
-
/** Initializes the foundation. */
|
|
144
|
-
init(): void;
|
|
145
|
-
/** Destroys the foundation. */
|
|
146
|
-
destroy(): void;
|
|
147
|
-
/**
|
|
148
|
-
* Sets whether the ink bar should be appended to the content, which will cause the ink bar
|
|
149
|
-
* to match the width of the content rather than the tab host element.
|
|
150
|
-
*/
|
|
151
|
-
setFitToContent(fitToContent: boolean): void;
|
|
152
|
-
/**
|
|
153
|
-
* Gets whether the ink bar should be appended to the content, which will cause the ink bar
|
|
154
|
-
* to match the width of the content rather than the tab host element.
|
|
155
|
-
*/
|
|
156
|
-
getFitToContent(): boolean;
|
|
157
|
-
/** Creates and appends the ink bar element. */
|
|
158
|
-
private _createInkBarElement;
|
|
159
|
-
/**
|
|
160
|
-
* Appends the ink bar to the tab host element or content, depending on whether
|
|
161
|
-
* the ink bar should fit to content.
|
|
162
|
-
*/
|
|
163
|
-
private _appendInkBarElement;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
123
|
/**
|
|
167
124
|
* Item inside a tab header relative to which the ink bar can be aligned.
|
|
168
125
|
* @docs-private
|
|
169
126
|
*/
|
|
170
|
-
declare interface MatInkBarItem {
|
|
171
|
-
_foundation: MatInkBarFoundation;
|
|
127
|
+
declare interface MatInkBarItem extends OnInit, OnDestroy {
|
|
172
128
|
elementRef: ElementRef<HTMLElement>;
|
|
129
|
+
activateInkBar(previousIndicatorClientRect?: ClientRect): void;
|
|
130
|
+
deactivateInkBar(): void;
|
|
131
|
+
fitInkBarToContent: boolean;
|
|
173
132
|
}
|
|
174
133
|
|
|
175
134
|
export { _MatInkBarPositioner }
|
|
@@ -274,33 +233,26 @@ export declare class MatTabLabel extends MatTabLabel_2 {
|
|
|
274
233
|
* Used in the `mat-tab-group` view to display tab labels.
|
|
275
234
|
* @docs-private
|
|
276
235
|
*/
|
|
277
|
-
export declare class MatTabLabelWrapper extends
|
|
278
|
-
private _document;
|
|
279
|
-
_foundation: MatInkBarFoundation;
|
|
280
|
-
/** Whether the ink bar should fit its width to the size of the tab label content. */
|
|
281
|
-
get fitInkBarToContent(): boolean;
|
|
282
|
-
set fitInkBarToContent(v: BooleanInput);
|
|
283
|
-
constructor(elementRef: ElementRef, _document: any);
|
|
284
|
-
ngOnInit(): void;
|
|
285
|
-
ngOnDestroy(): void;
|
|
236
|
+
export declare class MatTabLabelWrapper extends _MatTabLabelWrapperBase implements MatInkBarItem {
|
|
286
237
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLabelWrapper, never>;
|
|
287
238
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTabLabelWrapper, "[matTabLabelWrapper]", never, { "disabled": "disabled"; "fitInkBarToContent": "fitInkBarToContent"; }, {}, never, never, false>;
|
|
288
239
|
}
|
|
289
240
|
|
|
241
|
+
declare const _MatTabLabelWrapperBase: typeof MatTabLabelWrapper_2 & (new (...args: any[]) => MatInkBarItem);
|
|
242
|
+
|
|
290
243
|
/**
|
|
291
244
|
* Link inside of a `mat-tab-nav-bar`.
|
|
292
245
|
*/
|
|
293
|
-
export declare class MatTabLink extends _MatTabLinkBase implements MatInkBarItem,
|
|
294
|
-
private _document;
|
|
295
|
-
_foundation: MatInkBarFoundation;
|
|
246
|
+
export declare class MatTabLink extends _MatTabLinkBase implements MatInkBarItem, OnDestroy {
|
|
296
247
|
private readonly _destroyed;
|
|
297
|
-
constructor(tabNavBar: MatTabNav, elementRef: ElementRef, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, focusMonitor: FocusMonitor,
|
|
298
|
-
ngOnInit(): void;
|
|
248
|
+
constructor(tabNavBar: MatTabNav, elementRef: ElementRef, globalRippleOptions: RippleGlobalOptions | null, tabIndex: string, focusMonitor: FocusMonitor, animationMode?: string);
|
|
299
249
|
ngOnDestroy(): void;
|
|
300
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLink, [null, null, { optional: true; }, { attribute: "tabindex"; }, null,
|
|
301
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabLink, "[mat-tab-link], [matTabLink]", ["matTabLink"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false>;
|
|
250
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTabLink, [null, null, { optional: true; }, { attribute: "tabindex"; }, null, { optional: true; }]>;
|
|
251
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTabLink, "[mat-tab-link], [matTabLink]", ["matTabLink"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "tabIndex": "tabIndex"; "active": "active"; "id": "id"; }, {}, never, ["*"], false>;
|
|
302
252
|
}
|
|
303
253
|
|
|
254
|
+
declare const _MatTabLinkBase: typeof _MatTabLinkBase_2 & (new (...args: any[]) => MatInkBarItem);
|
|
255
|
+
|
|
304
256
|
/**
|
|
305
257
|
* Navigation component matching the styles of the tab group header.
|
|
306
258
|
* Provides anchored navigation with animated ink bar.
|