@angular/material 18.1.0-next.2 → 18.1.0-next.3
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/autocomplete/index.d.ts +3 -0
- package/bottom-sheet/index.d.ts +0 -1
- package/button/index.d.ts +7 -1
- package/checkbox/index.d.ts +5 -3
- package/chips/index.d.ts +9 -5
- package/core/_core-theme.scss +8 -14
- package/core/_core.scss +18 -4
- package/core/tokens/_density.scss +1 -0
- package/core/tokens/m2/mat/_app.scss +13 -1
- package/core/tokens/m2/mat/_menu.scss +3 -0
- package/core/tokens/m2/mat/_paginator.scss +1 -0
- package/core/tokens/m3/mat/_app.scss +9 -0
- package/core/tokens/m3/mat/_menu.scss +3 -0
- package/datepicker/index.d.ts +17 -1
- package/esm2022/autocomplete/autocomplete-trigger.mjs +28 -1
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +6 -7
- package/esm2022/button/button-base.mjs +1 -1
- package/esm2022/checkbox/checkbox.mjs +1 -1
- package/esm2022/chips/chip-grid.mjs +11 -4
- package/esm2022/chips/chip-row.mjs +8 -13
- package/esm2022/chips/chip-set.mjs +7 -3
- package/esm2022/chips/chip.mjs +1 -1
- package/esm2022/core/option/optgroup.mjs +2 -2
- package/esm2022/core/option/option.mjs +3 -3
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/date-range-input-parts.mjs +14 -10
- package/esm2022/datepicker/date-range-input.mjs +17 -7
- package/esm2022/datepicker/datepicker-base.mjs +5 -1
- package/esm2022/datepicker/datepicker-input.mjs +16 -5
- package/esm2022/form-field/form-field.mjs +12 -6
- package/esm2022/icon/icon.mjs +8 -2
- package/esm2022/list/list-option.mjs +3 -3
- package/esm2022/list/selection-list.mjs +9 -2
- package/esm2022/menu/menu.mjs +13 -4
- package/esm2022/paginator/paginator.mjs +3 -3
- package/esm2022/radio/radio.mjs +3 -3
- package/esm2022/slide-toggle/slide-toggle.mjs +1 -1
- package/esm2022/stepper/step-header.mjs +1 -1
- package/esm2022/stepper/stepper.mjs +1 -1
- package/esm2022/tabs/tab-header.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -4
- package/esm2022/toolbar/toolbar.mjs +1 -1
- package/fesm2022/autocomplete.mjs +27 -0
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +5 -6
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +15 -9
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +5 -5
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +37 -8
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/form-field.mjs +9 -3
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/icon.mjs +7 -1
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/list.mjs +10 -3
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +12 -3
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +2 -2
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/radio.mjs +2 -2
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/tabs.mjs +11 -5
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs.map +1 -1
- package/form-field/index.d.ts +12 -2
- package/icon/index.d.ts +14 -2
- package/list/_list-theme.scss +8 -5
- package/list/index.d.ts +8 -1
- package/package.json +2 -2
- package/paginator/index.d.ts +7 -1
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/radio/_radio-common.scss +238 -0
- package/radio/_radio-theme.scss +25 -32
- package/radio/index.d.ts +7 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/slide-toggle/index.d.ts +7 -1
- package/stepper/index.d.ts +21 -3
- package/tabs/index.d.ts +7 -1
- package/toolbar/index.d.ts +7 -1
package/fesm2022/chips.mjs
CHANGED
|
@@ -861,16 +861,11 @@ class MatChipRow extends MatChip {
|
|
|
861
861
|
// The value depends on the DOM so we need to extract it before we flip the flag.
|
|
862
862
|
const value = this.value;
|
|
863
863
|
this._isEditing = this._editStartPending = true;
|
|
864
|
-
//
|
|
865
|
-
|
|
866
|
-
// ensure that it happens by the time we hit the timeout below.
|
|
867
|
-
this._changeDetectorRef.detectChanges();
|
|
868
|
-
// TODO(crisbeto): this timeout shouldn't be necessary given the `detectChange` call above.
|
|
869
|
-
// Defer initializing the input so it has time to be added to the DOM.
|
|
870
|
-
setTimeout(() => {
|
|
864
|
+
// Defer initializing the input until after it has been added to the DOM.
|
|
865
|
+
afterNextRender(() => {
|
|
871
866
|
this._getEditInput().initialize(value);
|
|
872
867
|
this._editStartPending = false;
|
|
873
|
-
});
|
|
868
|
+
}, { injector: this._injector });
|
|
874
869
|
}
|
|
875
870
|
_onEditFinish() {
|
|
876
871
|
this._isEditing = this._editStartPending = false;
|
|
@@ -1065,9 +1060,13 @@ class MatChipSet {
|
|
|
1065
1060
|
if (this.tabIndex !== -1) {
|
|
1066
1061
|
const previousTabIndex = this.tabIndex;
|
|
1067
1062
|
this.tabIndex = -1;
|
|
1063
|
+
this._changeDetectorRef.markForCheck();
|
|
1068
1064
|
// Note that this needs to be a `setTimeout`, because a `Promise.resolve`
|
|
1069
1065
|
// doesn't allow enough time for the focus to escape.
|
|
1070
|
-
setTimeout(() =>
|
|
1066
|
+
setTimeout(() => {
|
|
1067
|
+
this.tabIndex = previousTabIndex;
|
|
1068
|
+
this._changeDetectorRef.markForCheck();
|
|
1069
|
+
});
|
|
1071
1070
|
}
|
|
1072
1071
|
}
|
|
1073
1072
|
/**
|
|
@@ -1718,6 +1717,13 @@ class MatChipGrid extends MatChipSet {
|
|
|
1718
1717
|
}
|
|
1719
1718
|
this._errorStateTracker = new _ErrorStateTracker(defaultErrorStateMatcher, ngControl, parentFormGroup, parentForm, this.stateChanges);
|
|
1720
1719
|
}
|
|
1720
|
+
ngOnInit() {
|
|
1721
|
+
if (this.ngControl) {
|
|
1722
|
+
this.ngControl.control?.events.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
1723
|
+
this._changeDetectorRef.markForCheck();
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1721
1727
|
ngAfterContentInit() {
|
|
1722
1728
|
this.chipBlurChanges.pipe(takeUntil(this._destroyed)).subscribe(() => {
|
|
1723
1729
|
this._blur();
|