@angular/material 21.0.0-next.9 → 21.0.0-rc.1
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/core/tokens/_classes.scss +1 -1
- package/core/tokens/m2/_md-sys-color.scss +17 -17
- package/fesm2022/_animation-chunk.mjs +10 -16
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs +68 -164
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs +284 -463
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +56 -19
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs +24 -31
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +1224 -1017
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +243 -187
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +350 -575
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs +56 -107
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs +0 -6
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +59 -19
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +83 -43
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +348 -311
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs +23 -39
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +36 -10
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +79 -44
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +36 -10
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs +71 -134
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +504 -600
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +120 -138
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +36 -10
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +37 -10
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +811 -888
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs +62 -86
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +965 -1126
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs +38 -54
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +321 -272
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs +10 -24
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +349 -344
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-testing.mjs +60 -94
- package/fesm2022/button-testing.mjs.map +1 -1
- package/fesm2022/button-toggle-testing.mjs +76 -125
- package/fesm2022/button-toggle-testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +752 -662
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +263 -158
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs +19 -33
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +576 -272
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs +71 -123
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +515 -477
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs +201 -344
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +2552 -2289
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs +14 -28
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +357 -328
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs +15 -25
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +4826 -4563
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs +93 -129
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +810 -829
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs +10 -11
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +119 -43
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs +74 -130
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +703 -515
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field-testing-control.mjs +16 -33
- package/fesm2022/form-field-testing-control.mjs.map +1 -1
- package/fesm2022/form-field-testing.mjs +118 -179
- package/fesm2022/form-field-testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -10
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs +65 -113
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +559 -494
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +148 -127
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +325 -351
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs +59 -99
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +457 -520
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs +251 -434
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +1522 -1204
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs +0 -5
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu-testing.mjs +159 -228
- package/fesm2022/menu-testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +1338 -1343
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs +55 -79
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +381 -309
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs +12 -21
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +224 -169
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs +13 -23
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +235 -160
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs +133 -208
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +712 -679
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs +83 -117
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +1116 -1246
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs +54 -120
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +1078 -995
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs +57 -92
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +369 -279
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs +90 -138
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +1651 -1716
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs +40 -87
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +763 -714
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs +45 -66
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +419 -344
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs +78 -154
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +790 -498
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs +120 -213
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +1026 -684
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs +125 -197
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +2351 -2028
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs +113 -172
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1019 -826
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs +16 -27
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +163 -78
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs +41 -52
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +36 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs +86 -162
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +638 -466
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/types/expansion.d.ts +4 -2
- package/types/menu-testing.d.ts +2 -0
- package/types/select.d.ts +1 -1
- package/types/timepicker.d.ts +1 -0
|
@@ -15,685 +15,775 @@ import '@angular/cdk/platform';
|
|
|
15
15
|
import '@angular/cdk/coercion';
|
|
16
16
|
import '@angular/cdk/layout';
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Injection token that can be used to configure the
|
|
20
|
-
* default options for all button toggles within an app.
|
|
21
|
-
*/
|
|
22
18
|
const MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS = new InjectionToken('MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS', {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
providedIn: 'root',
|
|
20
|
+
factory: () => ({
|
|
21
|
+
hideSingleSelectionIndicator: false,
|
|
22
|
+
hideMultipleSelectionIndicator: false,
|
|
23
|
+
disabledInteractive: false
|
|
24
|
+
})
|
|
29
25
|
});
|
|
30
|
-
/**
|
|
31
|
-
* Injection token that can be used to reference instances of `MatButtonToggleGroup`.
|
|
32
|
-
* It serves as alternative token to the actual `MatButtonToggleGroup` class which
|
|
33
|
-
* could cause unnecessary retention of the class and its component metadata.
|
|
34
|
-
*/
|
|
35
26
|
const MAT_BUTTON_TOGGLE_GROUP = new InjectionToken('MatButtonToggleGroup');
|
|
36
|
-
/**
|
|
37
|
-
* Provider Expression that allows mat-button-toggle-group to register as a ControlValueAccessor.
|
|
38
|
-
* This allows it to support [(ngModel)].
|
|
39
|
-
* @docs-private
|
|
40
|
-
*/
|
|
41
27
|
const MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
28
|
+
provide: NG_VALUE_ACCESSOR,
|
|
29
|
+
useExisting: forwardRef(() => MatButtonToggleGroup),
|
|
30
|
+
multi: true
|
|
45
31
|
};
|
|
46
|
-
/** Change event object emitted by button toggle. */
|
|
47
32
|
class MatButtonToggleChange {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
value) {
|
|
55
|
-
this.source = source;
|
|
56
|
-
this.value = value;
|
|
57
|
-
}
|
|
33
|
+
source;
|
|
34
|
+
value;
|
|
35
|
+
constructor(source, value) {
|
|
36
|
+
this.source = source;
|
|
37
|
+
this.value = value;
|
|
38
|
+
}
|
|
58
39
|
}
|
|
59
|
-
/** Exclusive selection button toggle group that behaves like a radio-button group. */
|
|
60
40
|
class MatButtonToggleGroup {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
this.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
// Deselect the currently-selected toggle, if we're in single-selection
|
|
256
|
-
// mode and the button being toggled isn't selected at the moment.
|
|
257
|
-
if (!this.multiple && this.selected && !toggle.checked) {
|
|
258
|
-
this.selected.checked = false;
|
|
259
|
-
}
|
|
260
|
-
if (this._selectionModel) {
|
|
261
|
-
if (select) {
|
|
262
|
-
this._selectionModel.select(toggle);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
this._selectionModel.deselect(toggle);
|
|
266
|
-
}
|
|
41
|
+
_changeDetector = inject(ChangeDetectorRef);
|
|
42
|
+
_dir = inject(Directionality, {
|
|
43
|
+
optional: true
|
|
44
|
+
});
|
|
45
|
+
_multiple = false;
|
|
46
|
+
_disabled = false;
|
|
47
|
+
_disabledInteractive = false;
|
|
48
|
+
_selectionModel;
|
|
49
|
+
_rawValue;
|
|
50
|
+
_controlValueAccessorChangeFn = () => {};
|
|
51
|
+
_onTouched = () => {};
|
|
52
|
+
_buttonToggles;
|
|
53
|
+
appearance;
|
|
54
|
+
get name() {
|
|
55
|
+
return this._name;
|
|
56
|
+
}
|
|
57
|
+
set name(value) {
|
|
58
|
+
this._name = value;
|
|
59
|
+
this._markButtonsForCheck();
|
|
60
|
+
}
|
|
61
|
+
_name = inject(_IdGenerator).getId('mat-button-toggle-group-');
|
|
62
|
+
vertical;
|
|
63
|
+
get value() {
|
|
64
|
+
const selected = this._selectionModel ? this._selectionModel.selected : [];
|
|
65
|
+
if (this.multiple) {
|
|
66
|
+
return selected.map(toggle => toggle.value);
|
|
67
|
+
}
|
|
68
|
+
return selected[0] ? selected[0].value : undefined;
|
|
69
|
+
}
|
|
70
|
+
set value(newValue) {
|
|
71
|
+
this._setSelectionByValue(newValue);
|
|
72
|
+
this.valueChange.emit(this.value);
|
|
73
|
+
}
|
|
74
|
+
valueChange = new EventEmitter();
|
|
75
|
+
get selected() {
|
|
76
|
+
const selected = this._selectionModel ? this._selectionModel.selected : [];
|
|
77
|
+
return this.multiple ? selected : selected[0] || null;
|
|
78
|
+
}
|
|
79
|
+
get multiple() {
|
|
80
|
+
return this._multiple;
|
|
81
|
+
}
|
|
82
|
+
set multiple(value) {
|
|
83
|
+
this._multiple = value;
|
|
84
|
+
this._markButtonsForCheck();
|
|
85
|
+
}
|
|
86
|
+
get disabled() {
|
|
87
|
+
return this._disabled;
|
|
88
|
+
}
|
|
89
|
+
set disabled(value) {
|
|
90
|
+
this._disabled = value;
|
|
91
|
+
this._markButtonsForCheck();
|
|
92
|
+
}
|
|
93
|
+
get disabledInteractive() {
|
|
94
|
+
return this._disabledInteractive;
|
|
95
|
+
}
|
|
96
|
+
set disabledInteractive(value) {
|
|
97
|
+
this._disabledInteractive = value;
|
|
98
|
+
this._markButtonsForCheck();
|
|
99
|
+
}
|
|
100
|
+
get dir() {
|
|
101
|
+
return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
|
|
102
|
+
}
|
|
103
|
+
change = new EventEmitter();
|
|
104
|
+
get hideSingleSelectionIndicator() {
|
|
105
|
+
return this._hideSingleSelectionIndicator;
|
|
106
|
+
}
|
|
107
|
+
set hideSingleSelectionIndicator(value) {
|
|
108
|
+
this._hideSingleSelectionIndicator = value;
|
|
109
|
+
this._markButtonsForCheck();
|
|
110
|
+
}
|
|
111
|
+
_hideSingleSelectionIndicator;
|
|
112
|
+
get hideMultipleSelectionIndicator() {
|
|
113
|
+
return this._hideMultipleSelectionIndicator;
|
|
114
|
+
}
|
|
115
|
+
set hideMultipleSelectionIndicator(value) {
|
|
116
|
+
this._hideMultipleSelectionIndicator = value;
|
|
117
|
+
this._markButtonsForCheck();
|
|
118
|
+
}
|
|
119
|
+
_hideMultipleSelectionIndicator;
|
|
120
|
+
constructor() {
|
|
121
|
+
const defaultOptions = inject(MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, {
|
|
122
|
+
optional: true
|
|
123
|
+
});
|
|
124
|
+
this.appearance = defaultOptions && defaultOptions.appearance ? defaultOptions.appearance : 'standard';
|
|
125
|
+
this.hideSingleSelectionIndicator = defaultOptions?.hideSingleSelectionIndicator ?? false;
|
|
126
|
+
this.hideMultipleSelectionIndicator = defaultOptions?.hideMultipleSelectionIndicator ?? false;
|
|
127
|
+
}
|
|
128
|
+
ngOnInit() {
|
|
129
|
+
this._selectionModel = new SelectionModel(this.multiple, undefined, false);
|
|
130
|
+
}
|
|
131
|
+
ngAfterContentInit() {
|
|
132
|
+
this._selectionModel.select(...this._buttonToggles.filter(toggle => toggle.checked));
|
|
133
|
+
if (!this.multiple) {
|
|
134
|
+
this._initializeTabIndex();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
writeValue(value) {
|
|
138
|
+
this.value = value;
|
|
139
|
+
this._changeDetector.markForCheck();
|
|
140
|
+
}
|
|
141
|
+
registerOnChange(fn) {
|
|
142
|
+
this._controlValueAccessorChangeFn = fn;
|
|
143
|
+
}
|
|
144
|
+
registerOnTouched(fn) {
|
|
145
|
+
this._onTouched = fn;
|
|
146
|
+
}
|
|
147
|
+
setDisabledState(isDisabled) {
|
|
148
|
+
this.disabled = isDisabled;
|
|
149
|
+
}
|
|
150
|
+
_keydown(event) {
|
|
151
|
+
if (this.multiple || this.disabled || hasModifierKey(event)) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const target = event.target;
|
|
155
|
+
const buttonId = target.id;
|
|
156
|
+
const index = this._buttonToggles.toArray().findIndex(toggle => {
|
|
157
|
+
return toggle.buttonId === buttonId;
|
|
158
|
+
});
|
|
159
|
+
let nextButton = null;
|
|
160
|
+
switch (event.keyCode) {
|
|
161
|
+
case SPACE:
|
|
162
|
+
case ENTER:
|
|
163
|
+
nextButton = this._buttonToggles.get(index) || null;
|
|
164
|
+
break;
|
|
165
|
+
case UP_ARROW:
|
|
166
|
+
nextButton = this._getNextButton(index, -1);
|
|
167
|
+
break;
|
|
168
|
+
case LEFT_ARROW:
|
|
169
|
+
nextButton = this._getNextButton(index, this.dir === 'ltr' ? -1 : 1);
|
|
170
|
+
break;
|
|
171
|
+
case DOWN_ARROW:
|
|
172
|
+
nextButton = this._getNextButton(index, 1);
|
|
173
|
+
break;
|
|
174
|
+
case RIGHT_ARROW:
|
|
175
|
+
nextButton = this._getNextButton(index, this.dir === 'ltr' ? 1 : -1);
|
|
176
|
+
break;
|
|
177
|
+
default:
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
if (nextButton) {
|
|
181
|
+
event.preventDefault();
|
|
182
|
+
nextButton._onButtonClick();
|
|
183
|
+
nextButton.focus();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
_emitChangeEvent(toggle) {
|
|
187
|
+
const event = new MatButtonToggleChange(toggle, this.value);
|
|
188
|
+
this._rawValue = event.value;
|
|
189
|
+
this._controlValueAccessorChangeFn(event.value);
|
|
190
|
+
this.change.emit(event);
|
|
191
|
+
}
|
|
192
|
+
_syncButtonToggle(toggle, select, isUserInput = false, deferEvents = false) {
|
|
193
|
+
if (!this.multiple && this.selected && !toggle.checked) {
|
|
194
|
+
this.selected.checked = false;
|
|
195
|
+
}
|
|
196
|
+
if (this._selectionModel) {
|
|
197
|
+
if (select) {
|
|
198
|
+
this._selectionModel.select(toggle);
|
|
199
|
+
} else {
|
|
200
|
+
this._selectionModel.deselect(toggle);
|
|
201
|
+
}
|
|
202
|
+
} else {
|
|
203
|
+
deferEvents = true;
|
|
204
|
+
}
|
|
205
|
+
if (deferEvents) {
|
|
206
|
+
Promise.resolve().then(() => this._updateModelValue(toggle, isUserInput));
|
|
207
|
+
} else {
|
|
208
|
+
this._updateModelValue(toggle, isUserInput);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
_isSelected(toggle) {
|
|
212
|
+
return this._selectionModel && this._selectionModel.isSelected(toggle);
|
|
213
|
+
}
|
|
214
|
+
_isPrechecked(toggle) {
|
|
215
|
+
if (typeof this._rawValue === 'undefined') {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
if (this.multiple && Array.isArray(this._rawValue)) {
|
|
219
|
+
return this._rawValue.some(value => toggle.value != null && value === toggle.value);
|
|
220
|
+
}
|
|
221
|
+
return toggle.value === this._rawValue;
|
|
222
|
+
}
|
|
223
|
+
_initializeTabIndex() {
|
|
224
|
+
this._buttonToggles.forEach(toggle => {
|
|
225
|
+
toggle.tabIndex = -1;
|
|
226
|
+
});
|
|
227
|
+
if (this.selected) {
|
|
228
|
+
this.selected.tabIndex = 0;
|
|
229
|
+
} else {
|
|
230
|
+
for (let i = 0; i < this._buttonToggles.length; i++) {
|
|
231
|
+
const toggle = this._buttonToggles.get(i);
|
|
232
|
+
if (!toggle.disabled) {
|
|
233
|
+
toggle.tabIndex = 0;
|
|
234
|
+
break;
|
|
267
235
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
if (
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
else {
|
|
304
|
-
for (let i = 0; i < this._buttonToggles.length; i++) {
|
|
305
|
-
const toggle = this._buttonToggles.get(i);
|
|
306
|
-
if (!toggle.disabled) {
|
|
307
|
-
toggle.tabIndex = 0;
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
/** Obtain the subsequent toggle to which the focus shifts. */
|
|
314
|
-
_getNextButton(startIndex, offset) {
|
|
315
|
-
const items = this._buttonToggles;
|
|
316
|
-
for (let i = 1; i <= items.length; i++) {
|
|
317
|
-
const index = (startIndex + offset * i + items.length) % items.length;
|
|
318
|
-
const item = items.get(index);
|
|
319
|
-
if (item && !item.disabled) {
|
|
320
|
-
return item;
|
|
321
|
-
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
_getNextButton(startIndex, offset) {
|
|
240
|
+
const items = this._buttonToggles;
|
|
241
|
+
for (let i = 1; i <= items.length; i++) {
|
|
242
|
+
const index = (startIndex + offset * i + items.length) % items.length;
|
|
243
|
+
const item = items.get(index);
|
|
244
|
+
if (item && !item.disabled) {
|
|
245
|
+
return item;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
_setSelectionByValue(value) {
|
|
251
|
+
this._rawValue = value;
|
|
252
|
+
if (!this._buttonToggles) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const toggles = this._buttonToggles.toArray();
|
|
256
|
+
if (this.multiple && value) {
|
|
257
|
+
if (!Array.isArray(value) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
258
|
+
throw Error('Value must be an array in multiple-selection mode.');
|
|
259
|
+
}
|
|
260
|
+
this._clearSelection();
|
|
261
|
+
value.forEach(currentValue => this._selectValue(currentValue, toggles));
|
|
262
|
+
} else {
|
|
263
|
+
this._clearSelection();
|
|
264
|
+
this._selectValue(value, toggles);
|
|
265
|
+
}
|
|
266
|
+
if (!this.multiple && toggles.every(toggle => toggle.tabIndex === -1)) {
|
|
267
|
+
for (const toggle of toggles) {
|
|
268
|
+
if (!toggle.disabled) {
|
|
269
|
+
toggle.tabIndex = 0;
|
|
270
|
+
break;
|
|
322
271
|
}
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
// In single selection mode we need at least one enabled toggle to always be focusable.
|
|
344
|
-
if (!this.multiple && toggles.every(toggle => toggle.tabIndex === -1)) {
|
|
345
|
-
for (const toggle of toggles) {
|
|
346
|
-
if (!toggle.disabled) {
|
|
347
|
-
toggle.tabIndex = 0;
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
/** Clears the selected toggles. */
|
|
354
|
-
_clearSelection() {
|
|
355
|
-
this._selectionModel.clear();
|
|
356
|
-
this._buttonToggles.forEach(toggle => {
|
|
357
|
-
toggle.checked = false;
|
|
358
|
-
// If the button toggle is in single select mode, initialize the tabIndex.
|
|
359
|
-
if (!this.multiple) {
|
|
360
|
-
toggle.tabIndex = -1;
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
/** Selects a value if there's a toggle that corresponds to it. */
|
|
365
|
-
_selectValue(value, toggles) {
|
|
366
|
-
for (const toggle of toggles) {
|
|
367
|
-
if (toggle.value === value) {
|
|
368
|
-
toggle.checked = true;
|
|
369
|
-
this._selectionModel.select(toggle);
|
|
370
|
-
if (!this.multiple) {
|
|
371
|
-
// If the button toggle is in single select mode, reset the tabIndex.
|
|
372
|
-
toggle.tabIndex = 0;
|
|
373
|
-
}
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
/** Syncs up the group's value with the model and emits the change event. */
|
|
379
|
-
_updateModelValue(toggle, isUserInput) {
|
|
380
|
-
// Only emit the change event for user input.
|
|
381
|
-
if (isUserInput) {
|
|
382
|
-
this._emitChangeEvent(toggle);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
_clearSelection() {
|
|
276
|
+
this._selectionModel.clear();
|
|
277
|
+
this._buttonToggles.forEach(toggle => {
|
|
278
|
+
toggle.checked = false;
|
|
279
|
+
if (!this.multiple) {
|
|
280
|
+
toggle.tabIndex = -1;
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
_selectValue(value, toggles) {
|
|
285
|
+
for (const toggle of toggles) {
|
|
286
|
+
if (toggle.value === value) {
|
|
287
|
+
toggle.checked = true;
|
|
288
|
+
this._selectionModel.select(toggle);
|
|
289
|
+
if (!this.multiple) {
|
|
290
|
+
toggle.tabIndex = 0;
|
|
383
291
|
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
_updateModelValue(toggle, isUserInput) {
|
|
297
|
+
if (isUserInput) {
|
|
298
|
+
this._emitChangeEvent(toggle);
|
|
299
|
+
}
|
|
300
|
+
this.valueChange.emit(this.value);
|
|
301
|
+
}
|
|
302
|
+
_markButtonsForCheck() {
|
|
303
|
+
this._buttonToggles?.forEach(toggle => toggle._markForCheck());
|
|
304
|
+
}
|
|
305
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
306
|
+
minVersion: "12.0.0",
|
|
307
|
+
version: "20.2.0-next.2",
|
|
308
|
+
ngImport: i0,
|
|
309
|
+
type: MatButtonToggleGroup,
|
|
310
|
+
deps: [],
|
|
311
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
312
|
+
});
|
|
313
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
314
|
+
minVersion: "16.1.0",
|
|
315
|
+
version: "20.2.0-next.2",
|
|
316
|
+
type: MatButtonToggleGroup,
|
|
317
|
+
isStandalone: true,
|
|
318
|
+
selector: "mat-button-toggle-group",
|
|
319
|
+
inputs: {
|
|
320
|
+
appearance: "appearance",
|
|
321
|
+
name: "name",
|
|
322
|
+
vertical: ["vertical", "vertical", booleanAttribute],
|
|
323
|
+
value: "value",
|
|
324
|
+
multiple: ["multiple", "multiple", booleanAttribute],
|
|
325
|
+
disabled: ["disabled", "disabled", booleanAttribute],
|
|
326
|
+
disabledInteractive: ["disabledInteractive", "disabledInteractive", booleanAttribute],
|
|
327
|
+
hideSingleSelectionIndicator: ["hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute],
|
|
328
|
+
hideMultipleSelectionIndicator: ["hideMultipleSelectionIndicator", "hideMultipleSelectionIndicator", booleanAttribute]
|
|
329
|
+
},
|
|
330
|
+
outputs: {
|
|
331
|
+
valueChange: "valueChange",
|
|
332
|
+
change: "change"
|
|
333
|
+
},
|
|
334
|
+
host: {
|
|
335
|
+
listeners: {
|
|
336
|
+
"keydown": "_keydown($event)"
|
|
337
|
+
},
|
|
338
|
+
properties: {
|
|
339
|
+
"attr.role": "multiple ? 'group' : 'radiogroup'",
|
|
340
|
+
"attr.aria-disabled": "disabled",
|
|
341
|
+
"class.mat-button-toggle-vertical": "vertical",
|
|
342
|
+
"class.mat-button-toggle-group-appearance-standard": "appearance === \"standard\""
|
|
343
|
+
},
|
|
344
|
+
classAttribute: "mat-button-toggle-group"
|
|
345
|
+
},
|
|
346
|
+
providers: [MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, {
|
|
347
|
+
provide: MAT_BUTTON_TOGGLE_GROUP,
|
|
348
|
+
useExisting: MatButtonToggleGroup
|
|
349
|
+
}],
|
|
350
|
+
queries: [{
|
|
351
|
+
propertyName: "_buttonToggles",
|
|
352
|
+
predicate: i0.forwardRef(() => MatButtonToggle),
|
|
353
|
+
descendants: true
|
|
354
|
+
}],
|
|
355
|
+
exportAs: ["matButtonToggleGroup"],
|
|
356
|
+
ngImport: i0
|
|
357
|
+
});
|
|
397
358
|
}
|
|
398
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
359
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
360
|
+
minVersion: "12.0.0",
|
|
361
|
+
version: "20.2.0-next.2",
|
|
362
|
+
ngImport: i0,
|
|
363
|
+
type: MatButtonToggleGroup,
|
|
364
|
+
decorators: [{
|
|
365
|
+
type: Directive,
|
|
366
|
+
args: [{
|
|
367
|
+
selector: 'mat-button-toggle-group',
|
|
368
|
+
providers: [MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, {
|
|
369
|
+
provide: MAT_BUTTON_TOGGLE_GROUP,
|
|
370
|
+
useExisting: MatButtonToggleGroup
|
|
371
|
+
}],
|
|
372
|
+
host: {
|
|
373
|
+
'class': 'mat-button-toggle-group',
|
|
374
|
+
'(keydown)': '_keydown($event)',
|
|
375
|
+
'[attr.role]': "multiple ? 'group' : 'radiogroup'",
|
|
376
|
+
'[attr.aria-disabled]': 'disabled',
|
|
377
|
+
'[class.mat-button-toggle-vertical]': 'vertical',
|
|
378
|
+
'[class.mat-button-toggle-group-appearance-standard]': 'appearance === "standard"'
|
|
379
|
+
},
|
|
380
|
+
exportAs: 'matButtonToggleGroup'
|
|
381
|
+
}]
|
|
382
|
+
}],
|
|
383
|
+
ctorParameters: () => [],
|
|
384
|
+
propDecorators: {
|
|
385
|
+
_buttonToggles: [{
|
|
386
|
+
type: ContentChildren,
|
|
387
|
+
args: [forwardRef(() => MatButtonToggle), {
|
|
388
|
+
descendants: true
|
|
389
|
+
}]
|
|
390
|
+
}],
|
|
391
|
+
appearance: [{
|
|
392
|
+
type: Input
|
|
393
|
+
}],
|
|
394
|
+
name: [{
|
|
395
|
+
type: Input
|
|
396
|
+
}],
|
|
397
|
+
vertical: [{
|
|
398
|
+
type: Input,
|
|
399
|
+
args: [{
|
|
400
|
+
transform: booleanAttribute
|
|
401
|
+
}]
|
|
402
|
+
}],
|
|
403
|
+
value: [{
|
|
404
|
+
type: Input
|
|
405
|
+
}],
|
|
406
|
+
valueChange: [{
|
|
407
|
+
type: Output
|
|
408
|
+
}],
|
|
409
|
+
multiple: [{
|
|
410
|
+
type: Input,
|
|
411
|
+
args: [{
|
|
412
|
+
transform: booleanAttribute
|
|
413
|
+
}]
|
|
414
|
+
}],
|
|
415
|
+
disabled: [{
|
|
416
|
+
type: Input,
|
|
417
|
+
args: [{
|
|
418
|
+
transform: booleanAttribute
|
|
419
|
+
}]
|
|
420
|
+
}],
|
|
421
|
+
disabledInteractive: [{
|
|
422
|
+
type: Input,
|
|
423
|
+
args: [{
|
|
424
|
+
transform: booleanAttribute
|
|
425
|
+
}]
|
|
426
|
+
}],
|
|
427
|
+
change: [{
|
|
428
|
+
type: Output
|
|
429
|
+
}],
|
|
430
|
+
hideSingleSelectionIndicator: [{
|
|
431
|
+
type: Input,
|
|
432
|
+
args: [{
|
|
433
|
+
transform: booleanAttribute
|
|
434
|
+
}]
|
|
435
|
+
}],
|
|
436
|
+
hideMultipleSelectionIndicator: [{
|
|
437
|
+
type: Input,
|
|
438
|
+
args: [{
|
|
439
|
+
transform: booleanAttribute
|
|
440
|
+
}]
|
|
441
|
+
}]
|
|
442
|
+
}
|
|
443
|
+
});
|
|
453
444
|
class MatButtonToggle {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
value;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0-next.2", type: MatButtonToggle, isStandalone: true, selector: "mat-button-toggle", inputs: { ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], id: "id", name: "name", value: "value", tabIndex: "tabIndex", disableRipple: ["disableRipple", "disableRipple", booleanAttribute], appearance: "appearance", checked: ["checked", "checked", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], disabledInteractive: ["disabledInteractive", "disabledInteractive", booleanAttribute] }, outputs: { change: "change" }, host: { attributes: { "role": "presentation" }, listeners: { "focus": "focus()" }, properties: { "class.mat-button-toggle-standalone": "!buttonToggleGroup", "class.mat-button-toggle-checked": "checked", "class.mat-button-toggle-disabled": "disabled", "class.mat-button-toggle-disabled-interactive": "disabledInteractive", "class.mat-button-toggle-appearance-standard": "appearance === \"standard\"", "attr.aria-label": "null", "attr.aria-labelledby": "null", "attr.id": "id", "attr.name": "null" }, classAttribute: "mat-button-toggle" }, viewQueries: [{ propertyName: "_buttonElement", first: true, predicate: ["button"], descendants: true }], exportAs: ["matButtonToggle"], ngImport: i0, template: "<button #button class=\"mat-button-toggle-button mat-focus-indicator\"\n type=\"button\"\n [id]=\"buttonId\"\n [attr.role]=\"isSingleSelector() ? 'radio' : 'button'\"\n [attr.tabindex]=\"disabled && !disabledInteractive ? -1 : tabIndex\"\n [attr.aria-pressed]=\"!isSingleSelector() ? checked : null\"\n [attr.aria-checked]=\"isSingleSelector() ? checked : null\"\n [disabled]=\"(disabled && !disabledInteractive) || null\"\n [attr.name]=\"_getButtonName()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-disabled]=\"disabled && disabledInteractive ? 'true' : null\"\n (click)=\"_onButtonClick()\">\n @if (buttonToggleGroup && (\n !buttonToggleGroup.multiple && !buttonToggleGroup.hideSingleSelectionIndicator ||\n buttonToggleGroup.multiple && !buttonToggleGroup.hideMultipleSelectionIndicator)\n ) {\n <div class=\"mat-button-toggle-checkbox-wrapper\">\n <mat-pseudo-checkbox\n [disabled]=\"disabled\"\n state=\"checked\"\n aria-hidden=\"true\"\n appearance=\"minimal\"/>\n </div>\n }\n\n <span class=\"mat-button-toggle-label-content\">\n <ng-content></ng-content>\n </span>\n</button>\n\n<span class=\"mat-button-toggle-focus-overlay\"></span>\n<span class=\"mat-button-toggle-ripple\" matRipple\n [matRippleTrigger]=\"button\"\n [matRippleDisabled]=\"disableRipple || disabled\">\n</span>\n", styles: [".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"], dependencies: [{ kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "component", type: MatPseudoCheckbox, selector: "mat-pseudo-checkbox", inputs: ["state", "disabled", "appearance"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
445
|
+
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
446
|
+
_elementRef = inject(ElementRef);
|
|
447
|
+
_focusMonitor = inject(FocusMonitor);
|
|
448
|
+
_idGenerator = inject(_IdGenerator);
|
|
449
|
+
_animationDisabled = _animationsDisabled();
|
|
450
|
+
_checked = false;
|
|
451
|
+
ariaLabel;
|
|
452
|
+
ariaLabelledby = null;
|
|
453
|
+
_buttonElement;
|
|
454
|
+
buttonToggleGroup;
|
|
455
|
+
get buttonId() {
|
|
456
|
+
return `${this.id}-button`;
|
|
457
|
+
}
|
|
458
|
+
id;
|
|
459
|
+
name;
|
|
460
|
+
value;
|
|
461
|
+
get tabIndex() {
|
|
462
|
+
return this._tabIndex();
|
|
463
|
+
}
|
|
464
|
+
set tabIndex(value) {
|
|
465
|
+
this._tabIndex.set(value);
|
|
466
|
+
}
|
|
467
|
+
_tabIndex;
|
|
468
|
+
disableRipple;
|
|
469
|
+
get appearance() {
|
|
470
|
+
return this.buttonToggleGroup ? this.buttonToggleGroup.appearance : this._appearance;
|
|
471
|
+
}
|
|
472
|
+
set appearance(value) {
|
|
473
|
+
this._appearance = value;
|
|
474
|
+
}
|
|
475
|
+
_appearance;
|
|
476
|
+
get checked() {
|
|
477
|
+
return this.buttonToggleGroup ? this.buttonToggleGroup._isSelected(this) : this._checked;
|
|
478
|
+
}
|
|
479
|
+
set checked(value) {
|
|
480
|
+
if (value !== this._checked) {
|
|
481
|
+
this._checked = value;
|
|
482
|
+
if (this.buttonToggleGroup) {
|
|
483
|
+
this.buttonToggleGroup._syncButtonToggle(this, this._checked);
|
|
484
|
+
}
|
|
485
|
+
this._changeDetectorRef.markForCheck();
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
get disabled() {
|
|
489
|
+
return this._disabled || this.buttonToggleGroup && this.buttonToggleGroup.disabled;
|
|
490
|
+
}
|
|
491
|
+
set disabled(value) {
|
|
492
|
+
this._disabled = value;
|
|
493
|
+
}
|
|
494
|
+
_disabled = false;
|
|
495
|
+
get disabledInteractive() {
|
|
496
|
+
return this._disabledInteractive || this.buttonToggleGroup !== null && this.buttonToggleGroup.disabledInteractive;
|
|
497
|
+
}
|
|
498
|
+
set disabledInteractive(value) {
|
|
499
|
+
this._disabledInteractive = value;
|
|
500
|
+
}
|
|
501
|
+
_disabledInteractive;
|
|
502
|
+
change = new EventEmitter();
|
|
503
|
+
constructor() {
|
|
504
|
+
inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
|
|
505
|
+
const toggleGroup = inject(MAT_BUTTON_TOGGLE_GROUP, {
|
|
506
|
+
optional: true
|
|
507
|
+
});
|
|
508
|
+
const defaultTabIndex = inject(new HostAttributeToken('tabindex'), {
|
|
509
|
+
optional: true
|
|
510
|
+
}) || '';
|
|
511
|
+
const defaultOptions = inject(MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, {
|
|
512
|
+
optional: true
|
|
513
|
+
});
|
|
514
|
+
this._tabIndex = signal(parseInt(defaultTabIndex) || 0, ...(ngDevMode ? [{
|
|
515
|
+
debugName: "_tabIndex"
|
|
516
|
+
}] : []));
|
|
517
|
+
this.buttonToggleGroup = toggleGroup;
|
|
518
|
+
this.appearance = defaultOptions && defaultOptions.appearance ? defaultOptions.appearance : 'standard';
|
|
519
|
+
this.disabledInteractive = defaultOptions?.disabledInteractive ?? false;
|
|
520
|
+
}
|
|
521
|
+
ngOnInit() {
|
|
522
|
+
const group = this.buttonToggleGroup;
|
|
523
|
+
this.id = this.id || this._idGenerator.getId('mat-button-toggle-');
|
|
524
|
+
if (group) {
|
|
525
|
+
if (group._isPrechecked(this)) {
|
|
526
|
+
this.checked = true;
|
|
527
|
+
} else if (group._isSelected(this) !== this._checked) {
|
|
528
|
+
group._syncButtonToggle(this, this._checked);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
ngAfterViewInit() {
|
|
533
|
+
if (!this._animationDisabled) {
|
|
534
|
+
this._elementRef.nativeElement.classList.add('mat-button-toggle-animations-enabled');
|
|
535
|
+
}
|
|
536
|
+
this._focusMonitor.monitor(this._elementRef, true);
|
|
537
|
+
}
|
|
538
|
+
ngOnDestroy() {
|
|
539
|
+
const group = this.buttonToggleGroup;
|
|
540
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
541
|
+
if (group && group._isSelected(this)) {
|
|
542
|
+
group._syncButtonToggle(this, false, false, true);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
focus(options) {
|
|
546
|
+
this._buttonElement.nativeElement.focus(options);
|
|
547
|
+
}
|
|
548
|
+
_onButtonClick() {
|
|
549
|
+
if (this.disabled) {
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
const newChecked = this.isSingleSelector() ? true : !this._checked;
|
|
553
|
+
if (newChecked !== this._checked) {
|
|
554
|
+
this._checked = newChecked;
|
|
555
|
+
if (this.buttonToggleGroup) {
|
|
556
|
+
this.buttonToggleGroup._syncButtonToggle(this, this._checked, true);
|
|
557
|
+
this.buttonToggleGroup._onTouched();
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
if (this.isSingleSelector()) {
|
|
561
|
+
const focusable = this.buttonToggleGroup._buttonToggles.find(toggle => {
|
|
562
|
+
return toggle.tabIndex === 0;
|
|
563
|
+
});
|
|
564
|
+
if (focusable) {
|
|
565
|
+
focusable.tabIndex = -1;
|
|
566
|
+
}
|
|
567
|
+
this.tabIndex = 0;
|
|
568
|
+
}
|
|
569
|
+
this.change.emit(new MatButtonToggleChange(this, this.value));
|
|
570
|
+
}
|
|
571
|
+
_markForCheck() {
|
|
572
|
+
this._changeDetectorRef.markForCheck();
|
|
573
|
+
}
|
|
574
|
+
_getButtonName() {
|
|
575
|
+
if (this.isSingleSelector()) {
|
|
576
|
+
return this.buttonToggleGroup.name;
|
|
577
|
+
}
|
|
578
|
+
return this.name || null;
|
|
579
|
+
}
|
|
580
|
+
isSingleSelector() {
|
|
581
|
+
return this.buttonToggleGroup && !this.buttonToggleGroup.multiple;
|
|
582
|
+
}
|
|
583
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
584
|
+
minVersion: "12.0.0",
|
|
585
|
+
version: "20.2.0-next.2",
|
|
586
|
+
ngImport: i0,
|
|
587
|
+
type: MatButtonToggle,
|
|
588
|
+
deps: [],
|
|
589
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
590
|
+
});
|
|
591
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
592
|
+
minVersion: "17.0.0",
|
|
593
|
+
version: "20.2.0-next.2",
|
|
594
|
+
type: MatButtonToggle,
|
|
595
|
+
isStandalone: true,
|
|
596
|
+
selector: "mat-button-toggle",
|
|
597
|
+
inputs: {
|
|
598
|
+
ariaLabel: ["aria-label", "ariaLabel"],
|
|
599
|
+
ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
|
|
600
|
+
id: "id",
|
|
601
|
+
name: "name",
|
|
602
|
+
value: "value",
|
|
603
|
+
tabIndex: "tabIndex",
|
|
604
|
+
disableRipple: ["disableRipple", "disableRipple", booleanAttribute],
|
|
605
|
+
appearance: "appearance",
|
|
606
|
+
checked: ["checked", "checked", booleanAttribute],
|
|
607
|
+
disabled: ["disabled", "disabled", booleanAttribute],
|
|
608
|
+
disabledInteractive: ["disabledInteractive", "disabledInteractive", booleanAttribute]
|
|
609
|
+
},
|
|
610
|
+
outputs: {
|
|
611
|
+
change: "change"
|
|
612
|
+
},
|
|
613
|
+
host: {
|
|
614
|
+
attributes: {
|
|
615
|
+
"role": "presentation"
|
|
616
|
+
},
|
|
617
|
+
listeners: {
|
|
618
|
+
"focus": "focus()"
|
|
619
|
+
},
|
|
620
|
+
properties: {
|
|
621
|
+
"class.mat-button-toggle-standalone": "!buttonToggleGroup",
|
|
622
|
+
"class.mat-button-toggle-checked": "checked",
|
|
623
|
+
"class.mat-button-toggle-disabled": "disabled",
|
|
624
|
+
"class.mat-button-toggle-disabled-interactive": "disabledInteractive",
|
|
625
|
+
"class.mat-button-toggle-appearance-standard": "appearance === \"standard\"",
|
|
626
|
+
"attr.aria-label": "null",
|
|
627
|
+
"attr.aria-labelledby": "null",
|
|
628
|
+
"attr.id": "id",
|
|
629
|
+
"attr.name": "null"
|
|
630
|
+
},
|
|
631
|
+
classAttribute: "mat-button-toggle"
|
|
632
|
+
},
|
|
633
|
+
viewQueries: [{
|
|
634
|
+
propertyName: "_buttonElement",
|
|
635
|
+
first: true,
|
|
636
|
+
predicate: ["button"],
|
|
637
|
+
descendants: true
|
|
638
|
+
}],
|
|
639
|
+
exportAs: ["matButtonToggle"],
|
|
640
|
+
ngImport: i0,
|
|
641
|
+
template: "<button #button class=\"mat-button-toggle-button mat-focus-indicator\"\n type=\"button\"\n [id]=\"buttonId\"\n [attr.role]=\"isSingleSelector() ? 'radio' : 'button'\"\n [attr.tabindex]=\"disabled && !disabledInteractive ? -1 : tabIndex\"\n [attr.aria-pressed]=\"!isSingleSelector() ? checked : null\"\n [attr.aria-checked]=\"isSingleSelector() ? checked : null\"\n [disabled]=\"(disabled && !disabledInteractive) || null\"\n [attr.name]=\"_getButtonName()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-disabled]=\"disabled && disabledInteractive ? 'true' : null\"\n (click)=\"_onButtonClick()\">\n @if (buttonToggleGroup && (\n !buttonToggleGroup.multiple && !buttonToggleGroup.hideSingleSelectionIndicator ||\n buttonToggleGroup.multiple && !buttonToggleGroup.hideMultipleSelectionIndicator)\n ) {\n <div class=\"mat-button-toggle-checkbox-wrapper\">\n <mat-pseudo-checkbox\n [disabled]=\"disabled\"\n state=\"checked\"\n aria-hidden=\"true\"\n appearance=\"minimal\"/>\n </div>\n }\n\n <span class=\"mat-button-toggle-label-content\">\n <ng-content></ng-content>\n </span>\n</button>\n\n<span class=\"mat-button-toggle-focus-overlay\"></span>\n<span class=\"mat-button-toggle-ripple\" matRipple\n [matRippleTrigger]=\"button\"\n [matRippleDisabled]=\"disableRipple || disabled\">\n</span>\n",
|
|
642
|
+
styles: [".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"],
|
|
643
|
+
dependencies: [{
|
|
644
|
+
kind: "directive",
|
|
645
|
+
type: MatRipple,
|
|
646
|
+
selector: "[mat-ripple], [matRipple]",
|
|
647
|
+
inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"],
|
|
648
|
+
exportAs: ["matRipple"]
|
|
649
|
+
}, {
|
|
650
|
+
kind: "component",
|
|
651
|
+
type: MatPseudoCheckbox,
|
|
652
|
+
selector: "mat-pseudo-checkbox",
|
|
653
|
+
inputs: ["state", "disabled", "appearance"]
|
|
654
|
+
}],
|
|
655
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
656
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
657
|
+
});
|
|
633
658
|
}
|
|
634
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}, imports: [MatRipple, MatPseudoCheckbox], template: "<button #button class=\"mat-button-toggle-button mat-focus-indicator\"\n type=\"button\"\n [id]=\"buttonId\"\n [attr.role]=\"isSingleSelector() ? 'radio' : 'button'\"\n [attr.tabindex]=\"disabled && !disabledInteractive ? -1 : tabIndex\"\n [attr.aria-pressed]=\"!isSingleSelector() ? checked : null\"\n [attr.aria-checked]=\"isSingleSelector() ? checked : null\"\n [disabled]=\"(disabled && !disabledInteractive) || null\"\n [attr.name]=\"_getButtonName()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-disabled]=\"disabled && disabledInteractive ? 'true' : null\"\n (click)=\"_onButtonClick()\">\n @if (buttonToggleGroup && (\n !buttonToggleGroup.multiple && !buttonToggleGroup.hideSingleSelectionIndicator ||\n buttonToggleGroup.multiple && !buttonToggleGroup.hideMultipleSelectionIndicator)\n ) {\n <div class=\"mat-button-toggle-checkbox-wrapper\">\n <mat-pseudo-checkbox\n [disabled]=\"disabled\"\n state=\"checked\"\n aria-hidden=\"true\"\n appearance=\"minimal\"/>\n </div>\n }\n\n <span class=\"mat-button-toggle-label-content\">\n <ng-content></ng-content>\n </span>\n</button>\n\n<span class=\"mat-button-toggle-focus-overlay\"></span>\n<span class=\"mat-button-toggle-ripple\" matRipple\n [matRippleTrigger]=\"button\"\n [matRippleDisabled]=\"disableRipple || disabled\">\n</span>\n", styles: [".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"] }]
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
type: Input
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
660
|
+
minVersion: "12.0.0",
|
|
661
|
+
version: "20.2.0-next.2",
|
|
662
|
+
ngImport: i0,
|
|
663
|
+
type: MatButtonToggle,
|
|
664
|
+
decorators: [{
|
|
665
|
+
type: Component,
|
|
666
|
+
args: [{
|
|
667
|
+
selector: 'mat-button-toggle',
|
|
668
|
+
encapsulation: ViewEncapsulation.None,
|
|
669
|
+
exportAs: 'matButtonToggle',
|
|
670
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
671
|
+
host: {
|
|
672
|
+
'[class.mat-button-toggle-standalone]': '!buttonToggleGroup',
|
|
673
|
+
'[class.mat-button-toggle-checked]': 'checked',
|
|
674
|
+
'[class.mat-button-toggle-disabled]': 'disabled',
|
|
675
|
+
'[class.mat-button-toggle-disabled-interactive]': 'disabledInteractive',
|
|
676
|
+
'[class.mat-button-toggle-appearance-standard]': 'appearance === "standard"',
|
|
677
|
+
'class': 'mat-button-toggle',
|
|
678
|
+
'[attr.aria-label]': 'null',
|
|
679
|
+
'[attr.aria-labelledby]': 'null',
|
|
680
|
+
'[attr.id]': 'id',
|
|
681
|
+
'[attr.name]': 'null',
|
|
682
|
+
'(focus)': 'focus()',
|
|
683
|
+
'role': 'presentation'
|
|
684
|
+
},
|
|
685
|
+
imports: [MatRipple, MatPseudoCheckbox],
|
|
686
|
+
template: "<button #button class=\"mat-button-toggle-button mat-focus-indicator\"\n type=\"button\"\n [id]=\"buttonId\"\n [attr.role]=\"isSingleSelector() ? 'radio' : 'button'\"\n [attr.tabindex]=\"disabled && !disabledInteractive ? -1 : tabIndex\"\n [attr.aria-pressed]=\"!isSingleSelector() ? checked : null\"\n [attr.aria-checked]=\"isSingleSelector() ? checked : null\"\n [disabled]=\"(disabled && !disabledInteractive) || null\"\n [attr.name]=\"_getButtonName()\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-disabled]=\"disabled && disabledInteractive ? 'true' : null\"\n (click)=\"_onButtonClick()\">\n @if (buttonToggleGroup && (\n !buttonToggleGroup.multiple && !buttonToggleGroup.hideSingleSelectionIndicator ||\n buttonToggleGroup.multiple && !buttonToggleGroup.hideMultipleSelectionIndicator)\n ) {\n <div class=\"mat-button-toggle-checkbox-wrapper\">\n <mat-pseudo-checkbox\n [disabled]=\"disabled\"\n state=\"checked\"\n aria-hidden=\"true\"\n appearance=\"minimal\"/>\n </div>\n }\n\n <span class=\"mat-button-toggle-label-content\">\n <ng-content></ng-content>\n </span>\n</button>\n\n<span class=\"mat-button-toggle-focus-overlay\"></span>\n<span class=\"mat-button-toggle-ripple\" matRipple\n [matRippleTrigger]=\"button\"\n [matRippleDisabled]=\"disableRipple || disabled\">\n</span>\n",
|
|
687
|
+
styles: [".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"]
|
|
688
|
+
}]
|
|
689
|
+
}],
|
|
690
|
+
ctorParameters: () => [],
|
|
691
|
+
propDecorators: {
|
|
692
|
+
ariaLabel: [{
|
|
693
|
+
type: Input,
|
|
694
|
+
args: ['aria-label']
|
|
695
|
+
}],
|
|
696
|
+
ariaLabelledby: [{
|
|
697
|
+
type: Input,
|
|
698
|
+
args: ['aria-labelledby']
|
|
699
|
+
}],
|
|
700
|
+
_buttonElement: [{
|
|
701
|
+
type: ViewChild,
|
|
702
|
+
args: ['button']
|
|
703
|
+
}],
|
|
704
|
+
id: [{
|
|
705
|
+
type: Input
|
|
706
|
+
}],
|
|
707
|
+
name: [{
|
|
708
|
+
type: Input
|
|
709
|
+
}],
|
|
710
|
+
value: [{
|
|
711
|
+
type: Input
|
|
712
|
+
}],
|
|
713
|
+
tabIndex: [{
|
|
714
|
+
type: Input
|
|
715
|
+
}],
|
|
716
|
+
disableRipple: [{
|
|
717
|
+
type: Input,
|
|
718
|
+
args: [{
|
|
719
|
+
transform: booleanAttribute
|
|
720
|
+
}]
|
|
721
|
+
}],
|
|
722
|
+
appearance: [{
|
|
723
|
+
type: Input
|
|
724
|
+
}],
|
|
725
|
+
checked: [{
|
|
726
|
+
type: Input,
|
|
727
|
+
args: [{
|
|
728
|
+
transform: booleanAttribute
|
|
729
|
+
}]
|
|
730
|
+
}],
|
|
731
|
+
disabled: [{
|
|
732
|
+
type: Input,
|
|
733
|
+
args: [{
|
|
734
|
+
transform: booleanAttribute
|
|
735
|
+
}]
|
|
736
|
+
}],
|
|
737
|
+
disabledInteractive: [{
|
|
738
|
+
type: Input,
|
|
739
|
+
args: [{
|
|
740
|
+
transform: booleanAttribute
|
|
741
|
+
}]
|
|
742
|
+
}],
|
|
743
|
+
change: [{
|
|
744
|
+
type: Output
|
|
745
|
+
}]
|
|
746
|
+
}
|
|
747
|
+
});
|
|
684
748
|
|
|
685
749
|
class MatButtonToggleModule {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
750
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
751
|
+
minVersion: "12.0.0",
|
|
752
|
+
version: "20.2.0-next.2",
|
|
753
|
+
ngImport: i0,
|
|
754
|
+
type: MatButtonToggleModule,
|
|
755
|
+
deps: [],
|
|
756
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
757
|
+
});
|
|
758
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
759
|
+
minVersion: "14.0.0",
|
|
760
|
+
version: "20.2.0-next.2",
|
|
761
|
+
ngImport: i0,
|
|
762
|
+
type: MatButtonToggleModule,
|
|
763
|
+
imports: [MatRippleModule, MatButtonToggleGroup, MatButtonToggle],
|
|
764
|
+
exports: [BidiModule, MatButtonToggleGroup, MatButtonToggle]
|
|
765
|
+
});
|
|
766
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
767
|
+
minVersion: "12.0.0",
|
|
768
|
+
version: "20.2.0-next.2",
|
|
769
|
+
ngImport: i0,
|
|
770
|
+
type: MatButtonToggleModule,
|
|
771
|
+
imports: [MatRippleModule, MatButtonToggle, BidiModule]
|
|
772
|
+
});
|
|
689
773
|
}
|
|
690
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
774
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
775
|
+
minVersion: "12.0.0",
|
|
776
|
+
version: "20.2.0-next.2",
|
|
777
|
+
ngImport: i0,
|
|
778
|
+
type: MatButtonToggleModule,
|
|
779
|
+
decorators: [{
|
|
780
|
+
type: NgModule,
|
|
781
|
+
args: [{
|
|
782
|
+
imports: [MatRippleModule, MatButtonToggleGroup, MatButtonToggle],
|
|
783
|
+
exports: [BidiModule, MatButtonToggleGroup, MatButtonToggle]
|
|
784
|
+
}]
|
|
785
|
+
}]
|
|
786
|
+
});
|
|
697
787
|
|
|
698
788
|
export { MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS, MAT_BUTTON_TOGGLE_GROUP, MAT_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR, MatButtonToggle, MatButtonToggleChange, MatButtonToggleGroup, MatButtonToggleModule };
|
|
699
789
|
//# sourceMappingURL=button-toggle.mjs.map
|