@angular/material 20.0.0-next.7 → 20.0.0-next.9
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 +14 -12
- package/autocomplete/testing/index.d.ts +1 -1
- package/badge/index.d.ts +4 -4
- package/badge/testing/index.d.ts +2 -2
- package/{badge.d-BUeRGv1E.d.ts → badge.d-D0iThVg0.d.ts} +3 -3
- package/bottom-sheet/index.d.ts +3 -3
- package/button/index.d.ts +5 -5
- package/button-toggle/index.d.ts +5 -5
- package/button-toggle/testing/index.d.ts +1 -1
- package/{button-toggle.d-cP94fe1M.d.ts → button-toggle.d-B_G01PhW.d.ts} +3 -3
- package/card/_m2-card.scss +3 -0
- package/card/_m3-card.scss +3 -0
- package/card/index.d.ts +2 -2
- package/checkbox/index.d.ts +2 -2
- package/chips/index.d.ts +6 -5
- package/{common-module.d-CUT8AqiB.d.ts → common-module.d-C8xzHJDr.d.ts} +2 -2
- package/core/index.d.ts +14 -14
- package/core/testing/index.d.ts +1 -1
- package/{date-adapter.d-DzP3EMeE.d.ts → date-adapter.d-CtKXIxk0.d.ts} +1 -1
- package/{date-range-input-harness.d-CJDdddpn.d.ts → date-range-input-harness.d-CaEyN8dT.d.ts} +2 -2
- package/datepicker/index.d.ts +12 -13
- package/datepicker/testing/index.d.ts +2 -2
- package/dialog/index.d.ts +4 -4
- package/dialog/testing/index.d.ts +2 -2
- package/{dialog.d-DSidcNPx.d.ts → dialog.d-DsYAn2Gk.d.ts} +8 -5
- package/divider/index.d.ts +1 -1
- package/{error-options.d-C1yXmo10.d.ts → error-options.d-CGdTZUYk.d.ts} +1 -1
- package/expansion/index.d.ts +1 -1
- package/fesm2022/{animation-DYWs964N.mjs → animation-DfMFjxHu.mjs} +2 -2
- package/fesm2022/{animation-DYWs964N.mjs.map → animation-DfMFjxHu.mjs.map} +1 -1
- package/fesm2022/autocomplete/testing.mjs +1 -1
- package/fesm2022/autocomplete.mjs +28 -27
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +5 -5
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +9 -7
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +7 -7
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +9 -10
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +6 -4
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +6 -6
- package/fesm2022/chips.mjs +20 -20
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-BTLyTce6.mjs → common-module-DZl8g1kc.mjs} +2 -2
- package/fesm2022/{common-module-BTLyTce6.mjs.map → common-module-DZl8g1kc.mjs.map} +1 -1
- package/fesm2022/core/testing.mjs +1 -1
- package/fesm2022/core.mjs +17 -18
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-formats-BQbO9F6H.mjs → date-formats-K6TQue-Y.mjs} +2 -2
- package/fesm2022/{date-formats-BQbO9F6H.mjs.map → date-formats-K6TQue-Y.mjs.map} +1 -1
- package/fesm2022/{date-range-input-harness-qhTX-DXo.mjs → date-range-input-harness-Bp1T4oUe.mjs} +2 -2
- package/fesm2022/{date-range-input-harness-qhTX-DXo.mjs.map → date-range-input-harness-Bp1T4oUe.mjs.map} +1 -1
- package/fesm2022/datepicker/testing.mjs +2 -2
- package/fesm2022/datepicker.mjs +31 -31
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +4 -4
- package/fesm2022/dialog.mjs +3 -3
- package/fesm2022/divider.mjs +2 -2
- package/fesm2022/{error-options-f2L_D2TV.mjs → error-options-BWOa3B4G.mjs} +2 -2
- package/fesm2022/{error-options-f2L_D2TV.mjs.map → error-options-BWOa3B4G.mjs.map} +1 -1
- package/fesm2022/{error-state-DAicm3pw.mjs → error-state-Dtb1IHM-.mjs} +2 -2
- package/fesm2022/{error-state-DAicm3pw.mjs.map → error-state-Dtb1IHM-.mjs.map} +1 -1
- package/fesm2022/expansion.mjs +4 -5
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +3 -3
- package/fesm2022/{form-field-DXXhIBX2.mjs → form-field-BZd6Vhww.mjs} +19 -14
- package/fesm2022/form-field-BZd6Vhww.mjs.map +1 -0
- package/fesm2022/form-field.mjs +4 -4
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list.mjs +5 -5
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +1 -2
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/{icon-button-SnLX2J-J.mjs → icon-button-4VvBKIK4.mjs} +6 -6
- package/fesm2022/{icon-button-SnLX2J-J.mjs.map → icon-button-4VvBKIK4.mjs.map} +1 -1
- package/fesm2022/{icon-registry-C2Nxi8Mq.mjs → icon-registry-Bk5cM8Z5.mjs} +3 -4
- package/fesm2022/icon-registry-Bk5cM8Z5.mjs.map +1 -0
- package/fesm2022/icon.mjs +4 -5
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/{index-CYUgEsfZ.mjs → index-BHJ4tVIe.mjs} +6 -6
- package/fesm2022/{index-CYUgEsfZ.mjs.map → index-BHJ4tVIe.mjs.map} +1 -1
- package/fesm2022/{index-D7tf-UtR.mjs → index-D2rZ0V78.mjs} +4 -4
- package/fesm2022/{index-D7tf-UtR.mjs.map → index-D2rZ0V78.mjs.map} +1 -1
- package/fesm2022/input/testing.mjs +1 -1
- package/fesm2022/{input-harness-CxVp_q3n.mjs → input-harness-oQzj5EsQ.mjs} +2 -2
- package/fesm2022/{input-harness-CxVp_q3n.mjs.map → input-harness-oQzj5EsQ.mjs.map} +1 -1
- package/fesm2022/{input-value-accessor-cp3A3zMa.mjs → input-value-accessor-D1GvPuqO.mjs} +2 -2
- package/fesm2022/{input-value-accessor-cp3A3zMa.mjs.map → input-value-accessor-D1GvPuqO.mjs.map} +1 -1
- package/fesm2022/input.mjs +9 -9
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-Bq9jLDgy.mjs → internal-form-field-DVvKYBKJ.mjs} +3 -3
- package/fesm2022/{internal-form-field-Bq9jLDgy.mjs.map → internal-form-field-DVvKYBKJ.mjs.map} +1 -1
- package/fesm2022/{line-DI2_SkWl.mjs → line-Dwrcg_t9.mjs} +3 -3
- package/fesm2022/{line-DI2_SkWl.mjs.map → line-Dwrcg_t9.mjs.map} +1 -1
- package/fesm2022/list.mjs +9 -9
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +17 -21
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-BIHXUA0w.mjs → module-CTd5xD2i.mjs} +4 -4
- package/fesm2022/{module-BIHXUA0w.mjs.map → module-CTd5xD2i.mjs.map} +1 -1
- package/fesm2022/{module-Bj-soMIE.mjs → module-D-cNfopD.mjs} +24 -12
- package/fesm2022/module-D-cNfopD.mjs.map +1 -0
- package/fesm2022/{module-nTxiyWBy.mjs → module-X29xYsIk.mjs} +22 -22
- package/fesm2022/module-X29xYsIk.mjs.map +1 -0
- package/fesm2022/{module-Bj_BSG1B.mjs → module-qRXgbi2L.mjs} +30 -21
- package/fesm2022/module-qRXgbi2L.mjs.map +1 -0
- package/fesm2022/{option-Ce_vIVuD.mjs → option-MOeehkAg.mjs} +6 -6
- package/fesm2022/{option-Ce_vIVuD.mjs.map → option-MOeehkAg.mjs.map} +1 -1
- package/fesm2022/{option-harness-D_dpAU04.mjs → option-harness-BFcc-M_4.mjs} +2 -2
- package/fesm2022/{option-harness-D_dpAU04.mjs.map → option-harness-BFcc-M_4.mjs.map} +1 -1
- package/fesm2022/paginator/testing.mjs +1 -1
- package/fesm2022/paginator.mjs +19 -19
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +3 -4
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +3 -3
- package/fesm2022/{pseudo-checkbox-rb5Qj2XH.mjs → pseudo-checkbox-BFGIaGxz.mjs} +4 -4
- package/fesm2022/{pseudo-checkbox-rb5Qj2XH.mjs.map → pseudo-checkbox-BFGIaGxz.mjs.map} +1 -1
- package/fesm2022/{pseudo-checkbox-module-B1fNUV1l.mjs → pseudo-checkbox-module-Dxth-mPi.mjs} +4 -4
- package/fesm2022/{pseudo-checkbox-module-B1fNUV1l.mjs.map → pseudo-checkbox-module-Dxth-mPi.mjs.map} +1 -1
- package/fesm2022/{public-api-B95TI2uI.mjs → public-api-BoO5eSq-.mjs} +2 -2
- package/fesm2022/{public-api-B95TI2uI.mjs.map → public-api-BoO5eSq-.mjs.map} +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +7 -7
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-t-kasrhF.mjs → ripple-CuyVtN3V.mjs} +4 -4
- package/fesm2022/{ripple-t-kasrhF.mjs.map → ripple-CuyVtN3V.mjs.map} +1 -1
- package/fesm2022/{ripple-loader-R9v4tIlx.mjs → ripple-loader-pOctSZby.mjs} +5 -6
- package/fesm2022/ripple-loader-pOctSZby.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +1 -1
- package/fesm2022/select.mjs +14 -14
- package/fesm2022/sidenav.mjs +3 -4
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +8 -8
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +6 -6
- package/fesm2022/snack-bar.mjs +11 -13
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +4 -4
- package/fesm2022/stepper.mjs +10 -10
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{structural-styles-BcST1BXh.mjs → structural-styles-CasigI3l.mjs} +3 -3
- package/fesm2022/{structural-styles-BcST1BXh.mjs.map → structural-styles-CasigI3l.mjs.map} +1 -1
- package/fesm2022/table.mjs +6 -8
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +13 -8
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker.mjs +18 -21
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +2 -3
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +3 -3
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +2 -2
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +5 -5
- package/form-field/testing/index.d.ts +3 -3
- package/{form-field-control.d-39fAGkWp.d.ts → form-field-control.d-DvB4ZVlf.d.ts} +1 -1
- package/{form-field.d-DeaA8Upo.d.ts → form-field.d-b9aHrR4I.d.ts} +6 -6
- package/grid-list/index.d.ts +2 -2
- package/icon/index.d.ts +4 -4
- package/icon/testing/index.d.ts +1 -1
- package/{icon-module.d-BeibE7j0.d.ts → icon-module.d-sA1hmRKS.d.ts} +5 -5
- package/{icon-registry.d-DyR40vgq.d.ts → icon-registry.d-BVwP8t9_.d.ts} +2 -2
- package/{index.d-_XdEyDn3.d.ts → index.d-C5neTPvr.d.ts} +3 -3
- package/{index.d-osnm7rw7.d.ts → index.d-CikM2bbf.d.ts} +5 -5
- package/input/index.d.ts +9 -9
- package/input/testing/index.d.ts +1 -1
- package/{input-harness.d-C1zsmszC.d.ts → input-harness.d-8fkAAbu2.d.ts} +2 -2
- package/{line.d-OCn_JHOE.d.ts → line.d-C-QdueRc.d.ts} +2 -2
- package/list/index.d.ts +6 -6
- package/list/testing/index.d.ts +1 -1
- package/{list-option-types.d-BcmY3SsC.d.ts → list-option-types.d-77dQtwu8.d.ts} +1 -1
- package/menu/index.d.ts +8 -8
- package/{module.d-_FxAFBZR.d.ts → module.d-BGzxQfCs.d.ts} +3 -3
- package/{module.d-D0Yb5xFi.d.ts → module.d-CH_8jCsD.d.ts} +13 -13
- package/{module.d-Cym1ScGE.d.ts → module.d-m-qXd3m8.d.ts} +8 -7
- package/{option-harness.d-BpYClwei.d.ts → option-harness.d-IqsW95GR.d.ts} +2 -2
- package/{option-parent.d-CvnRKBST.d.ts → option-parent.d-CnYuuMkO.d.ts} +2 -2
- package/{option.d-ef4idHSb.d.ts → option.d-BVGX3edu.d.ts} +1 -1
- package/package.json +2 -2
- package/paginator/index.d.ts +16 -16
- package/paginator/testing/index.d.ts +1 -1
- package/{paginator.d-Ctdtnt7L.d.ts → paginator.d-3kymf0wo.d.ts} +5 -5
- package/{palette.d-fF1us9u8.d.ts → palette.d-BSSFKjO6.d.ts} +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/index.d.ts +2 -2
- package/progress-spinner/index.d.ts +4 -4
- package/progress-spinner/testing/index.d.ts +2 -2
- package/{progress-spinner.d-DRWEU4qb.d.ts → progress-spinner.d-DtYCWeYd.d.ts} +3 -3
- package/{pseudo-checkbox-module.d-czRCRd5m.d.ts → pseudo-checkbox-module.d-BHmTZ10P.d.ts} +3 -3
- package/radio/index.d.ts +5 -5
- package/{ripple-loader.d-DL-hT7NH.d.ts → ripple-loader.d-9me-KFSi.d.ts} +1 -1
- package/{ripple.d-DBFnJ3Aa.d.ts → ripple.d-BT30YVLB.d.ts} +3 -3
- package/schematics/ng-add/fonts/material-fonts.js +2 -2
- package/schematics/ng-add/fonts/material-fonts.js.map +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/setup-project.js +4 -4
- package/schematics/ng-add/setup-project.js.map +1 -1
- package/schematics/ng-add/theming/theming.js +5 -7
- package/schematics/ng-add/theming/theming.js.map +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +7 -0
- package/schematics/ng-generate/theme-color/index_bundled.js.map +1 -1
- package/select/index.d.ts +12 -12
- package/select/testing/index.d.ts +1 -1
- package/sidenav/index.d.ts +2 -2
- package/sidenav/testing/index.d.ts +1 -1
- package/slide-toggle/index.d.ts +2 -2
- package/slider/index.d.ts +5 -5
- package/snack-bar/index.d.ts +7 -8
- package/sort/index.d.ts +4 -4
- package/sort/testing/index.d.ts +1 -1
- package/{sort-direction.d-Dlz8961P.d.ts → sort-direction.d-CF7VUsH-.d.ts} +1 -1
- package/{sort.d-CHu7FXsP.d.ts → sort.d-i-bF_IaU.d.ts} +4 -4
- package/stepper/_m3-stepper.scss +10 -0
- package/stepper/index.d.ts +6 -6
- package/table/index.d.ts +8 -8
- package/table/testing/index.d.ts +1 -1
- package/tabs/index.d.ts +6 -5
- package/timepicker/index.d.ts +2 -3
- package/timepicker/testing/index.d.ts +1 -1
- package/toolbar/index.d.ts +1 -1
- package/tooltip/index.d.ts +2 -2
- package/tree/index.d.ts +1 -1
- package/fesm2022/form-field-DXXhIBX2.mjs.map +0 -1
- package/fesm2022/icon-registry-C2Nxi8Mq.mjs.map +0 -1
- package/fesm2022/module-Bj-soMIE.mjs.map +0 -1
- package/fesm2022/module-Bj_BSG1B.mjs.map +0 -1
- package/fesm2022/module-nTxiyWBy.mjs.map +0 -1
- package/fesm2022/ripple-loader-R9v4tIlx.mjs.map +0 -1
package/fesm2022/datepicker.mjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, ElementRef, NgZone, EventEmitter, Injector, Renderer2, afterNextRender,
|
|
2
|
+
import { Injectable, inject, ElementRef, NgZone, EventEmitter, Injector, Renderer2, afterNextRender, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Optional, SkipSelf, InjectionToken, ChangeDetectorRef, ViewChild, ViewContainerRef, DOCUMENT, booleanAttribute, Directive, forwardRef, signal, HostAttributeToken, ContentChild, TemplateRef, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, Subscription, merge, of } from 'rxjs';
|
|
4
|
-
import { DateAdapter, MAT_DATE_FORMATS } from './date-formats-
|
|
4
|
+
import { D as DateAdapter, a as MAT_DATE_FORMATS } from './date-formats-K6TQue-Y.mjs';
|
|
5
5
|
import { _IdGenerator, CdkMonitorFocus, CdkTrapFocus, A11yModule } from '@angular/cdk/a11y';
|
|
6
6
|
import { Directionality } from '@angular/cdk/bidi';
|
|
7
7
|
import { coerceStringArray } from '@angular/cdk/coercion';
|
|
8
8
|
import { ESCAPE, hasModifierKey, SPACE, ENTER, PAGE_DOWN, PAGE_UP, END, HOME, DOWN_ARROW, UP_ARROW, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';
|
|
9
|
-
import {
|
|
9
|
+
import { createRepositionScrollStrategy, FlexibleConnectedPositionStrategy, createOverlayRef, OverlayConfig, createBlockScrollStrategy, createGlobalPositionStrategy, createFlexibleConnectedPositionStrategy, OverlayModule } from '@angular/cdk/overlay';
|
|
10
10
|
import { Platform, _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
11
11
|
import { ComponentPortal, CdkPortalOutlet, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
12
|
-
import { NgClass, DOCUMENT } from '@angular/common';
|
|
13
12
|
import { startWith, take, filter } from 'rxjs/operators';
|
|
13
|
+
import { NgClass } from '@angular/common';
|
|
14
14
|
import { _CdkPrivateStyleLoader, _VisuallyHiddenLoader } from '@angular/cdk/private';
|
|
15
|
-
import { _StructuralStylesLoader } from './structural-styles-
|
|
15
|
+
import { _ as _StructuralStylesLoader } from './structural-styles-CasigI3l.mjs';
|
|
16
16
|
import { MatButton, MatButtonModule } from './button.mjs';
|
|
17
|
-
import { MatIconButton } from './icon-button-
|
|
18
|
-
import { _animationsDisabled } from './animation-
|
|
17
|
+
import { M as MatIconButton } from './icon-button-4VvBKIK4.mjs';
|
|
18
|
+
import { _ as _animationsDisabled } from './animation-DfMFjxHu.mjs';
|
|
19
19
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, ControlContainer, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
|
|
20
|
-
import { MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-
|
|
21
|
-
import { MAT_FORM_FIELD, MatFormFieldControl } from './form-field-
|
|
22
|
-
import { ErrorStateMatcher } from './error-options-
|
|
23
|
-
import { _ErrorStateTracker } from './error-state-
|
|
20
|
+
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-D1GvPuqO.mjs';
|
|
21
|
+
import { h as MAT_FORM_FIELD, k as MatFormFieldControl } from './form-field-BZd6Vhww.mjs';
|
|
22
|
+
import { E as ErrorStateMatcher } from './error-options-BWOa3B4G.mjs';
|
|
23
|
+
import { _ as _ErrorStateTracker } from './error-state-Dtb1IHM-.mjs';
|
|
24
24
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
25
|
-
import { MatCommonModule } from './common-module-
|
|
26
|
-
import './index-
|
|
27
|
-
import './ripple-
|
|
28
|
-
import './ripple-loader-
|
|
25
|
+
import { M as MatCommonModule } from './common-module-DZl8g1kc.mjs';
|
|
26
|
+
import './index-D2rZ0V78.mjs';
|
|
27
|
+
import './ripple-CuyVtN3V.mjs';
|
|
28
|
+
import './ripple-loader-pOctSZby.mjs';
|
|
29
29
|
import '@angular/cdk/layout';
|
|
30
30
|
import '@angular/cdk/observers/private';
|
|
31
31
|
|
|
@@ -1559,7 +1559,7 @@ class MatMultiYearView {
|
|
|
1559
1559
|
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, isRtl ? -1 : 1);
|
|
1560
1560
|
break;
|
|
1561
1561
|
case UP_ARROW:
|
|
1562
|
-
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -
|
|
1562
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, -yearsPerRow);
|
|
1563
1563
|
break;
|
|
1564
1564
|
case DOWN_ARROW:
|
|
1565
1565
|
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, yearsPerRow);
|
|
@@ -1573,7 +1573,7 @@ class MatMultiYearView {
|
|
|
1573
1573
|
1);
|
|
1574
1574
|
break;
|
|
1575
1575
|
case PAGE_UP:
|
|
1576
|
-
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -
|
|
1576
|
+
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? -yearsPerPage * 10 : -yearsPerPage);
|
|
1577
1577
|
break;
|
|
1578
1578
|
case PAGE_DOWN:
|
|
1579
1579
|
this.activeDate = this._dateAdapter.addCalendarYears(this._activeDate, event.altKey ? yearsPerPage * 10 : yearsPerPage);
|
|
@@ -2124,7 +2124,7 @@ class MatCalendarHeader {
|
|
|
2124
2124
|
this.calendar.activeDate =
|
|
2125
2125
|
this.calendar.currentView == 'month'
|
|
2126
2126
|
? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1)
|
|
2127
|
-
: this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -
|
|
2127
|
+
: this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);
|
|
2128
2128
|
}
|
|
2129
2129
|
/** Handles user clicks on the next button. */
|
|
2130
2130
|
nextClicked() {
|
|
@@ -2476,8 +2476,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5",
|
|
|
2476
2476
|
const MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll-strategy', {
|
|
2477
2477
|
providedIn: 'root',
|
|
2478
2478
|
factory: () => {
|
|
2479
|
-
const
|
|
2480
|
-
return () =>
|
|
2479
|
+
const injector = inject(Injector);
|
|
2480
|
+
return () => createRepositionScrollStrategy(injector);
|
|
2481
2481
|
},
|
|
2482
2482
|
});
|
|
2483
2483
|
/**
|
|
@@ -2485,8 +2485,9 @@ const MAT_DATEPICKER_SCROLL_STRATEGY = new InjectionToken('mat-datepicker-scroll
|
|
|
2485
2485
|
* @deprecated No longer used, will be removed.
|
|
2486
2486
|
* @breaking-change 21.0.0
|
|
2487
2487
|
*/
|
|
2488
|
-
function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(
|
|
2489
|
-
|
|
2488
|
+
function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(_overlay) {
|
|
2489
|
+
const injector = inject(Injector);
|
|
2490
|
+
return () => createRepositionScrollStrategy(injector);
|
|
2490
2491
|
}
|
|
2491
2492
|
/**
|
|
2492
2493
|
* @docs-private
|
|
@@ -2495,7 +2496,7 @@ function MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
|
2495
2496
|
*/
|
|
2496
2497
|
const MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
2497
2498
|
provide: MAT_DATEPICKER_SCROLL_STRATEGY,
|
|
2498
|
-
deps: [
|
|
2499
|
+
deps: [],
|
|
2499
2500
|
useFactory: MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
|
|
2500
2501
|
};
|
|
2501
2502
|
/**
|
|
@@ -2675,7 +2676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5",
|
|
|
2675
2676
|
}] } });
|
|
2676
2677
|
/** Base class for a datepicker. */
|
|
2677
2678
|
class MatDatepickerBase {
|
|
2678
|
-
|
|
2679
|
+
_injector = inject(Injector);
|
|
2679
2680
|
_viewContainerRef = inject(ViewContainerRef);
|
|
2680
2681
|
_dateAdapter = inject(DateAdapter, { optional: true });
|
|
2681
2682
|
_dir = inject(Directionality, { optional: true });
|
|
@@ -2808,7 +2809,6 @@ class MatDatepickerBase {
|
|
|
2808
2809
|
datepickerInput;
|
|
2809
2810
|
/** Emits when the datepicker's state changes. */
|
|
2810
2811
|
stateChanges = new Subject();
|
|
2811
|
-
_injector = inject(Injector);
|
|
2812
2812
|
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
2813
2813
|
constructor() {
|
|
2814
2814
|
if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
@@ -2966,7 +2966,7 @@ class MatDatepickerBase {
|
|
|
2966
2966
|
this._destroyOverlay();
|
|
2967
2967
|
const isDialog = this.touchUi;
|
|
2968
2968
|
const portal = new ComponentPortal(MatDatepickerContent, this._viewContainerRef);
|
|
2969
|
-
const overlayRef = (this._overlayRef = this.
|
|
2969
|
+
const overlayRef = (this._overlayRef = createOverlayRef(this._injector, new OverlayConfig({
|
|
2970
2970
|
positionStrategy: isDialog ? this._getDialogStrategy() : this._getDropdownStrategy(),
|
|
2971
2971
|
hasBackdrop: true,
|
|
2972
2972
|
backdropClass: [
|
|
@@ -2974,7 +2974,9 @@ class MatDatepickerBase {
|
|
|
2974
2974
|
this._backdropHarnessClass,
|
|
2975
2975
|
],
|
|
2976
2976
|
direction: this._dir || 'ltr',
|
|
2977
|
-
scrollStrategy: isDialog
|
|
2977
|
+
scrollStrategy: isDialog
|
|
2978
|
+
? createBlockScrollStrategy(this._injector)
|
|
2979
|
+
: this._scrollStrategy(),
|
|
2978
2980
|
panelClass: `mat-datepicker-${isDialog ? 'dialog' : 'popup'}`,
|
|
2979
2981
|
disableAnimations: this._animationsDisabled,
|
|
2980
2982
|
})));
|
|
@@ -3017,13 +3019,11 @@ class MatDatepickerBase {
|
|
|
3017
3019
|
}
|
|
3018
3020
|
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
3019
3021
|
_getDialogStrategy() {
|
|
3020
|
-
return this.
|
|
3022
|
+
return createGlobalPositionStrategy(this._injector).centerHorizontally().centerVertically();
|
|
3021
3023
|
}
|
|
3022
3024
|
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
3023
3025
|
_getDropdownStrategy() {
|
|
3024
|
-
const strategy = this.
|
|
3025
|
-
.position()
|
|
3026
|
-
.flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin())
|
|
3026
|
+
const strategy = createFlexibleConnectedPositionStrategy(this._injector, this.datepickerInput.getConnectedOverlayOrigin())
|
|
3027
3027
|
.withTransformOriginOn('.mat-datepicker-content')
|
|
3028
3028
|
.withFlexibleDimensions(false)
|
|
3029
3029
|
.withViewportMargin(8)
|