@angular/material 20.1.1 → 20.2.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/autocomplete.mjs +23 -23
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +11 -11
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +11 -11
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +16 -16
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +20 -20
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +47 -47
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +12 -12
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +50 -50
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/{common-module-cKSwHniA.mjs → common-module-DAS0wn13.mjs} +5 -5
- package/fesm2022/{common-module-cKSwHniA.mjs.map → common-module-DAS0wn13.mjs.map} +1 -1
- package/fesm2022/core.mjs +24 -24
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +93 -93
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +2 -2
- package/fesm2022/dialog.mjs +2 -2
- package/fesm2022/divider.mjs +8 -8
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/{error-options-DCNQlTOA.mjs → error-options-Bq793X0d.mjs} +7 -7
- package/fesm2022/{error-options-DCNQlTOA.mjs.map → error-options-Bq793X0d.mjs.map} +1 -1
- package/fesm2022/expansion.mjs +27 -27
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/{form-field-CFbrnFED.mjs → form-field-Bp1BCQ2b.mjs} +40 -40
- package/fesm2022/{form-field-CFbrnFED.mjs.map → form-field-Bp1BCQ2b.mjs.map} +1 -1
- package/fesm2022/form-field.mjs +3 -3
- package/fesm2022/grid-list.mjs +24 -24
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +8 -8
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/{icon-button-DxiIc1ex.mjs → icon-button-KgXJnU_D.mjs} +9 -9
- package/fesm2022/{icon-button-DxiIc1ex.mjs.map → icon-button-KgXJnU_D.mjs.map} +1 -1
- package/fesm2022/{icon-registry-CwOTJ7YM.mjs → icon-registry-BoQxDGS7.mjs} +4 -4
- package/fesm2022/{icon-registry-CwOTJ7YM.mjs.map → icon-registry-BoQxDGS7.mjs.map} +1 -1
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-ByBcQY3R.mjs +22 -0
- package/fesm2022/{index-DwiL-HGk.mjs.map → index-ByBcQY3R.mjs.map} +1 -1
- package/fesm2022/index-DPMBppX-.mjs +20 -0
- package/fesm2022/{index-BFRo2fUq.mjs.map → index-DPMBppX-.mjs.map} +1 -1
- package/fesm2022/input.mjs +12 -12
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/{internal-form-field-D5iFxU6d.mjs → internal-form-field-BjqHmADC.mjs} +4 -4
- package/fesm2022/{internal-form-field-D5iFxU6d.mjs.map → internal-form-field-BjqHmADC.mjs.map} +1 -1
- package/fesm2022/{line-Bz5f9Cyx.mjs → line-BZzwAXSt.mjs} +9 -9
- package/fesm2022/{line-Bz5f9Cyx.mjs.map → line-BZzwAXSt.mjs.map} +1 -1
- package/fesm2022/list.mjs +58 -58
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +26 -26
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-CWxMD37a.mjs → module-BLyJetA8.mjs} +12 -12
- package/fesm2022/{module-CWxMD37a.mjs.map → module-BLyJetA8.mjs.map} +1 -1
- package/fesm2022/{module-B0CLRw5e.mjs → module-D8r4rZmE.mjs} +18 -18
- package/fesm2022/{module-B0CLRw5e.mjs.map → module-D8r4rZmE.mjs.map} +1 -1
- package/fesm2022/{module-B62K-792.mjs → module-DFA1Fexr.mjs} +7 -7
- package/fesm2022/{module-B62K-792.mjs.map → module-DFA1Fexr.mjs.map} +1 -1
- package/fesm2022/{module-Ce6F7TNm.mjs → module-MzaMA0u6.mjs} +27 -27
- package/fesm2022/{module-Ce6F7TNm.mjs.map → module-MzaMA0u6.mjs.map} +1 -1
- package/fesm2022/{option-BzhYL_xC.mjs → option-DikEMAxk.mjs} +11 -11
- package/fesm2022/{option-BzhYL_xC.mjs.map → option-DikEMAxk.mjs.map} +1 -1
- package/fesm2022/paginator.mjs +25 -25
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +8 -8
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +8 -8
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/{pseudo-checkbox-DDmgx3P4.mjs → pseudo-checkbox-MTYwd7sN.mjs} +4 -4
- package/fesm2022/{pseudo-checkbox-DDmgx3P4.mjs.map → pseudo-checkbox-MTYwd7sN.mjs.map} +1 -1
- package/fesm2022/pseudo-checkbox-module-BH5rV6nS.mjs +20 -0
- package/fesm2022/{pseudo-checkbox-module-4F8Up4PL.mjs.map → pseudo-checkbox-module-BH5rV6nS.mjs.map} +1 -1
- package/fesm2022/radio.mjs +15 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-BYgV4oZC.mjs → ripple-Caf80wGY.mjs} +7 -7
- package/fesm2022/{ripple-BYgV4oZC.mjs.map → ripple-Caf80wGY.mjs.map} +1 -1
- package/fesm2022/{ripple-loader-BnMiRtmT.mjs → ripple-loader-DWrwQmhi.mjs} +5 -5
- package/fesm2022/{ripple-loader-BnMiRtmT.mjs.map → ripple-loader-DWrwQmhi.mjs.map} +1 -1
- package/fesm2022/select.mjs +12 -12
- package/fesm2022/sidenav.mjs +24 -24
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +13 -13
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +21 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +28 -28
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +16 -16
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +38 -38
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{structural-styles-CObeNzjn.mjs → structural-styles-BrpNk7kf.mjs} +4 -4
- package/fesm2022/{structural-styles-CObeNzjn.mjs.map → structural-styles-BrpNk7kf.mjs.map} +1 -1
- package/fesm2022/table.mjs +56 -56
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +50 -50
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +82 -77
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +11 -11
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +2 -2
- package/fesm2022/tree.mjs +26 -26
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +6 -6
- 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/schematics/ng-add/index.js +2 -2
- package/slide-toggle/_m2-slide-toggle.scss +2 -1
- package/slide-toggle/_m3-slide-toggle.scss +13 -1
- package/fesm2022/index-BFRo2fUq.mjs +0 -20
- package/fesm2022/index-DwiL-HGk.mjs +0 -22
- package/fesm2022/pseudo-checkbox-module-4F8Up4PL.mjs +0 -20
package/fesm2022/timepicker.mjs
CHANGED
|
@@ -8,23 +8,23 @@ import { TAB, ESCAPE, hasModifierKey, ENTER, DOWN_ARROW, UP_ARROW } from '@angul
|
|
|
8
8
|
import { ActiveDescendantKeyManager, _IdGenerator } from '@angular/cdk/a11y';
|
|
9
9
|
import { D as DateAdapter, a as MAT_DATE_FORMATS } from './date-formats-K6TQue-Y.mjs';
|
|
10
10
|
import { _ as _animationsDisabled } from './animation-DfMFjxHu.mjs';
|
|
11
|
-
import { M as MatOption, c as MAT_OPTION_PARENT_COMPONENT } from './option-
|
|
11
|
+
import { M as MatOption, c as MAT_OPTION_PARENT_COMPONENT } from './option-DikEMAxk.mjs';
|
|
12
12
|
import { Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
13
|
-
import { h as MAT_FORM_FIELD } from './form-field-
|
|
13
|
+
import { h as MAT_FORM_FIELD } from './form-field-Bp1BCQ2b.mjs';
|
|
14
14
|
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-D1GvPuqO.mjs';
|
|
15
|
-
import { M as MatIconButton } from './icon-button-
|
|
15
|
+
import { M as MatIconButton } from './icon-button-KgXJnU_D.mjs';
|
|
16
16
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
17
17
|
import 'rxjs';
|
|
18
18
|
import '@angular/cdk/layout';
|
|
19
|
-
import './ripple-
|
|
19
|
+
import './ripple-Caf80wGY.mjs';
|
|
20
20
|
import '@angular/cdk/coercion';
|
|
21
21
|
import '@angular/cdk/private';
|
|
22
|
-
import './pseudo-checkbox-
|
|
23
|
-
import './structural-styles-
|
|
22
|
+
import './pseudo-checkbox-MTYwd7sN.mjs';
|
|
23
|
+
import './structural-styles-BrpNk7kf.mjs';
|
|
24
24
|
import '@angular/common';
|
|
25
25
|
import 'rxjs/operators';
|
|
26
26
|
import '@angular/cdk/observers/private';
|
|
27
|
-
import './ripple-loader-
|
|
27
|
+
import './ripple-loader-DWrwQmhi.mjs';
|
|
28
28
|
|
|
29
29
|
/** Pattern that interval strings have to match. */
|
|
30
30
|
const INTERVAL_PATTERN = /^(\d*\.?\d+)\s*(h|hour|hours|m|min|minute|minutes|s|second|seconds)?$/i;
|
|
@@ -125,9 +125,9 @@ class MatTimepicker {
|
|
|
125
125
|
_dateFormats = inject(MAT_DATE_FORMATS, { optional: true });
|
|
126
126
|
_scrollStrategyFactory = inject(MAT_TIMEPICKER_SCROLL_STRATEGY);
|
|
127
127
|
_animationsDisabled = _animationsDisabled();
|
|
128
|
-
_isOpen = signal(false);
|
|
129
|
-
_activeDescendant = signal(null);
|
|
130
|
-
_input = signal(null);
|
|
128
|
+
_isOpen = signal(false, ...(ngDevMode ? [{ debugName: "_isOpen" }] : []));
|
|
129
|
+
_activeDescendant = signal(null, ...(ngDevMode ? [{ debugName: "_activeDescendant" }] : []));
|
|
130
|
+
_input = signal(null, ...(ngDevMode ? [{ debugName: "_input" }] : []));
|
|
131
131
|
_overlayRef = null;
|
|
132
132
|
_portal = null;
|
|
133
133
|
_optionsCacheKey = null;
|
|
@@ -135,7 +135,7 @@ class MatTimepicker {
|
|
|
135
135
|
_onOpenRender = null;
|
|
136
136
|
_panelTemplate = viewChild.required('panelTemplate');
|
|
137
137
|
_timeOptions = [];
|
|
138
|
-
_options = viewChildren(MatOption);
|
|
138
|
+
_options = viewChildren(MatOption, ...(ngDevMode ? [{ debugName: "_options" }] : []));
|
|
139
139
|
_keyManager = new ActiveDescendantKeyManager(this._options, this._injector)
|
|
140
140
|
.withHomeAndEnd(true)
|
|
141
141
|
.withPageUpDown(true)
|
|
@@ -145,12 +145,12 @@ class MatTimepicker {
|
|
|
145
145
|
* seconds (e.g. 90) or a number with a unit (e.g. 45m). Supported units are `s` for seconds,
|
|
146
146
|
* `m` for minutes or `h` for hours.
|
|
147
147
|
*/
|
|
148
|
-
interval = input(parseInterval(this._defaultConfig?.interval || null), { transform: parseInterval });
|
|
148
|
+
interval = input(parseInterval(this._defaultConfig?.interval || null), ...(ngDevMode ? [{ debugName: "interval", transform: parseInterval }] : [{ transform: parseInterval }]));
|
|
149
149
|
/**
|
|
150
150
|
* Array of pre-defined options that the user can select from, as an alternative to using the
|
|
151
151
|
* `interval` input. An error will be thrown if both `options` and `interval` are specified.
|
|
152
152
|
*/
|
|
153
|
-
options = input(null);
|
|
153
|
+
options = input(null, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
154
154
|
/** Whether the timepicker is open. */
|
|
155
155
|
isOpen = this._isOpen.asReadonly();
|
|
156
156
|
/** Emits when the user selects a time. */
|
|
@@ -164,19 +164,19 @@ class MatTimepicker {
|
|
|
164
164
|
/** Unique ID of the timepicker's panel */
|
|
165
165
|
panelId = inject(_IdGenerator).getId('mat-timepicker-panel-');
|
|
166
166
|
/** Whether ripples within the timepicker should be disabled. */
|
|
167
|
-
disableRipple = input(this._defaultConfig?.disableRipple ?? false, {
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
disableRipple = input(this._defaultConfig?.disableRipple ?? false, ...(ngDevMode ? [{ debugName: "disableRipple", transform: booleanAttribute }] : [{
|
|
168
|
+
transform: booleanAttribute,
|
|
169
|
+
}]));
|
|
170
170
|
/** ARIA label for the timepicker panel. */
|
|
171
|
-
ariaLabel = input(null, {
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel", alias: 'aria-label' }] : [{
|
|
172
|
+
alias: 'aria-label',
|
|
173
|
+
}]));
|
|
174
174
|
/** ID of the label element for the timepicker panel. */
|
|
175
|
-
ariaLabelledby = input(null, {
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
ariaLabelledby = input(null, ...(ngDevMode ? [{ debugName: "ariaLabelledby", alias: 'aria-labelledby' }] : [{
|
|
176
|
+
alias: 'aria-labelledby',
|
|
177
|
+
}]));
|
|
178
178
|
/** Whether the timepicker is currently disabled. */
|
|
179
|
-
disabled = computed(() => !!this._input()?.disabled());
|
|
179
|
+
disabled = computed(() => !!this._input()?.disabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
180
180
|
constructor() {
|
|
181
181
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
182
182
|
validateAdapter(this._dateAdapter, this._dateFormats);
|
|
@@ -424,15 +424,15 @@ class MatTimepicker {
|
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
428
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.0", type: MatTimepicker, isStandalone: true, selector: "mat-timepicker", inputs: { interval: { classPropertyName: "interval", publicName: "interval", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", opened: "opened", closed: "closed" }, providers: [
|
|
427
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
428
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.0-next.0", type: MatTimepicker, isStandalone: true, selector: "mat-timepicker", inputs: { interval: { classPropertyName: "interval", publicName: "interval", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", opened: "opened", closed: "closed" }, providers: [
|
|
429
429
|
{
|
|
430
430
|
provide: MAT_OPTION_PARENT_COMPONENT,
|
|
431
431
|
useExisting: MatTimepicker,
|
|
432
432
|
},
|
|
433
433
|
], viewQueries: [{ propertyName: "_panelTemplate", first: true, predicate: ["panelTemplate"], descendants: true, isSignal: true }, { propertyName: "_options", predicate: MatOption, descendants: true, isSignal: true }], exportAs: ["matTimepicker"], ngImport: i0, template: "<ng-template #panelTemplate>\n <div\n role=\"listbox\"\n class=\"mat-timepicker-panel\"\n [class.mat-timepicker-panel-animations-enabled]=\"!_animationsDisabled\"\n [class.mat-timepicker-panel-exit]=\"!isOpen()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"_getAriaLabelledby()\"\n [id]=\"panelId\"\n (animationend)=\"_handleAnimationEnd($event)\">\n @for (option of _timeOptions; track option.value) {\n <mat-option\n [value]=\"option.value\"\n (onSelectionChange)=\"_selectValue($event.source)\">{{option.label}}</mat-option>\n }\n </div>\n</ng-template>\n", styles: ["@keyframes _mat-timepicker-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-timepicker-exit{from{opacity:1}to{opacity:0}}mat-timepicker{display:none}.mat-timepicker-panel{width:100%;max-height:256px;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-bottom-left-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-timepicker-container-elevation-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));background-color:var(--mat-timepicker-container-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){.mat-timepicker-panel{outline:solid 1px}}.mat-timepicker-above .mat-timepicker-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-timepicker-container-shape, var(--mat-sys-corner-extra-small))}.mat-timepicker-panel-animations-enabled{animation:_mat-timepicker-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-timepicker-panel-animations-enabled.mat-timepicker-panel-exit{animation:_mat-timepicker-exit 100ms linear}.mat-timepicker-input[readonly]{cursor:pointer}@media(forced-colors: active){.mat-timepicker-toggle-default-icon{color:CanvasText}}\n"], dependencies: [{ kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
434
434
|
}
|
|
435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepicker, decorators: [{
|
|
435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepicker, decorators: [{
|
|
436
436
|
type: Component,
|
|
437
437
|
args: [{ selector: 'mat-timepicker', exportAs: 'matTimepicker', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [MatOption], providers: [
|
|
438
438
|
{
|
|
@@ -462,7 +462,7 @@ class MatTimepickerInput {
|
|
|
462
462
|
_onTouched;
|
|
463
463
|
_validatorOnChange;
|
|
464
464
|
_cleanupClick;
|
|
465
|
-
_accessorDisabled = signal(false);
|
|
465
|
+
_accessorDisabled = signal(false, ...(ngDevMode ? [{ debugName: "_accessorDisabled" }] : []));
|
|
466
466
|
_localeSubscription;
|
|
467
467
|
_timepickerSubscription;
|
|
468
468
|
_validator;
|
|
@@ -474,55 +474,59 @@ class MatTimepickerInput {
|
|
|
474
474
|
const isOpen = timepicker.isOpen();
|
|
475
475
|
const activeDescendant = timepicker.activeDescendant();
|
|
476
476
|
return isOpen && activeDescendant ? activeDescendant : null;
|
|
477
|
-
});
|
|
477
|
+
}, ...(ngDevMode ? [{ debugName: "_ariaActiveDescendant" }] : []));
|
|
478
478
|
/** Value of the `aria-expanded` attribute. */
|
|
479
|
-
_ariaExpanded = computed(() => this.timepicker().isOpen() + '');
|
|
479
|
+
_ariaExpanded = computed(() => this.timepicker().isOpen() + '', ...(ngDevMode ? [{ debugName: "_ariaExpanded" }] : []));
|
|
480
480
|
/** Value of the `aria-controls` attribute. */
|
|
481
481
|
_ariaControls = computed(() => {
|
|
482
482
|
const timepicker = this.timepicker();
|
|
483
483
|
return timepicker.isOpen() ? timepicker.panelId : null;
|
|
484
|
-
});
|
|
484
|
+
}, ...(ngDevMode ? [{ debugName: "_ariaControls" }] : []));
|
|
485
485
|
/** Current value of the input. */
|
|
486
|
-
value = model(null);
|
|
486
|
+
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
487
487
|
/** Timepicker that the input is associated with. */
|
|
488
|
-
timepicker = input.required({
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
timepicker = input.required(...(ngDevMode ? [{ debugName: "timepicker", alias: 'matTimepicker' }] : [{
|
|
489
|
+
alias: 'matTimepicker',
|
|
490
|
+
}]));
|
|
491
491
|
/**
|
|
492
492
|
* Minimum time that can be selected or typed in. Can be either
|
|
493
493
|
* a date object (only time will be used) or a valid time string.
|
|
494
494
|
*/
|
|
495
|
-
min = input(null, {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
495
|
+
min = input(null, ...(ngDevMode ? [{ debugName: "min", alias: 'matTimepickerMin',
|
|
496
|
+
transform: (value) => this._transformDateInput(value) }] : [{
|
|
497
|
+
alias: 'matTimepickerMin',
|
|
498
|
+
transform: (value) => this._transformDateInput(value),
|
|
499
|
+
}]));
|
|
499
500
|
/**
|
|
500
501
|
* Maximum time that can be selected or typed in. Can be either
|
|
501
502
|
* a date object (only time will be used) or a valid time string.
|
|
502
503
|
*/
|
|
503
|
-
max = input(null, {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
max = input(null, ...(ngDevMode ? [{ debugName: "max", alias: 'matTimepickerMax',
|
|
505
|
+
transform: (value) => this._transformDateInput(value) }] : [{
|
|
506
|
+
alias: 'matTimepickerMax',
|
|
507
|
+
transform: (value) => this._transformDateInput(value),
|
|
508
|
+
}]));
|
|
507
509
|
/**
|
|
508
510
|
* Whether to open the timepicker overlay when clicking on the input. Enabled by default.
|
|
509
511
|
* Note that when disabling this option, you'll have to provide your own logic for opening
|
|
510
512
|
* the overlay.
|
|
511
513
|
*/
|
|
512
|
-
openOnClick = input(true, {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
openOnClick = input(true, ...(ngDevMode ? [{ debugName: "openOnClick", alias: 'matTimepickerOpenOnClick',
|
|
515
|
+
transform: booleanAttribute }] : [{
|
|
516
|
+
alias: 'matTimepickerOpenOnClick',
|
|
517
|
+
transform: booleanAttribute,
|
|
518
|
+
}]));
|
|
516
519
|
/** Whether the input is disabled. */
|
|
517
|
-
disabled = computed(() => this.disabledInput() || this._accessorDisabled());
|
|
520
|
+
disabled = computed(() => this.disabledInput() || this._accessorDisabled(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
518
521
|
/**
|
|
519
522
|
* Whether the input should be disabled through the template.
|
|
520
523
|
* @docs-private
|
|
521
524
|
*/
|
|
522
|
-
disabledInput = input(false, {
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
525
|
+
disabledInput = input(false, ...(ngDevMode ? [{ debugName: "disabledInput", transform: booleanAttribute,
|
|
526
|
+
alias: 'disabled' }] : [{
|
|
527
|
+
transform: booleanAttribute,
|
|
528
|
+
alias: 'disabled',
|
|
529
|
+
}]));
|
|
526
530
|
constructor() {
|
|
527
531
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
528
532
|
validateAdapter(this._dateAdapter, this._dateFormats);
|
|
@@ -764,8 +768,8 @@ class MatTimepickerInput {
|
|
|
764
768
|
},
|
|
765
769
|
]);
|
|
766
770
|
}
|
|
767
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
768
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: MatTimepickerInput, isStandalone: true, selector: "input[matTimepicker]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, timepicker: { classPropertyName: "timepicker", publicName: "matTimepicker", isSignal: true, isRequired: true, transformFunction: null }, min: { classPropertyName: "min", publicName: "matTimepickerMin", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "matTimepickerMax", isSignal: true, isRequired: false, transformFunction: null }, openOnClick: { classPropertyName: "openOnClick", publicName: "matTimepickerOpenOnClick", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "combobox", "type": "text", "aria-haspopup": "listbox" }, listeners: { "blur": "_handleBlur()", "input": "_handleInput($event)", "keydown": "_handleKeydown($event)" }, properties: { "attr.aria-activedescendant": "_ariaActiveDescendant()", "attr.aria-expanded": "_ariaExpanded()", "attr.aria-controls": "_ariaControls()", "attr.mat-timepicker-id": "timepicker()?.panelId", "disabled": "disabled()" }, classAttribute: "mat-timepicker-input" }, providers: [
|
|
771
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
772
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.2.0-next.0", type: MatTimepickerInput, isStandalone: true, selector: "input[matTimepicker]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, timepicker: { classPropertyName: "timepicker", publicName: "matTimepicker", isSignal: true, isRequired: true, transformFunction: null }, min: { classPropertyName: "min", publicName: "matTimepickerMin", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "matTimepickerMax", isSignal: true, isRequired: false, transformFunction: null }, openOnClick: { classPropertyName: "openOnClick", publicName: "matTimepickerOpenOnClick", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { attributes: { "role": "combobox", "type": "text", "aria-haspopup": "listbox" }, listeners: { "blur": "_handleBlur()", "input": "_handleInput($event)", "keydown": "_handleKeydown($event)" }, properties: { "attr.aria-activedescendant": "_ariaActiveDescendant()", "attr.aria-expanded": "_ariaExpanded()", "attr.aria-controls": "_ariaControls()", "attr.mat-timepicker-id": "timepicker()?.panelId", "disabled": "disabled()" }, classAttribute: "mat-timepicker-input" }, providers: [
|
|
769
773
|
{
|
|
770
774
|
provide: NG_VALUE_ACCESSOR,
|
|
771
775
|
useExisting: MatTimepickerInput,
|
|
@@ -782,7 +786,7 @@ class MatTimepickerInput {
|
|
|
782
786
|
},
|
|
783
787
|
], exportAs: ["matTimepickerInput"], ngImport: i0 });
|
|
784
788
|
}
|
|
785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerInput, decorators: [{
|
|
789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerInput, decorators: [{
|
|
786
790
|
type: Directive,
|
|
787
791
|
args: [{
|
|
788
792
|
selector: 'input[matTimepicker]',
|
|
@@ -831,30 +835,31 @@ class MatTimepickerToggle {
|
|
|
831
835
|
_isDisabled = computed(() => {
|
|
832
836
|
const timepicker = this.timepicker();
|
|
833
837
|
return this.disabled() || timepicker.disabled();
|
|
834
|
-
});
|
|
838
|
+
}, ...(ngDevMode ? [{ debugName: "_isDisabled" }] : []));
|
|
835
839
|
/** Timepicker instance that the button will toggle. */
|
|
836
|
-
timepicker = input.required({
|
|
837
|
-
|
|
838
|
-
|
|
840
|
+
timepicker = input.required(...(ngDevMode ? [{ debugName: "timepicker", alias: 'for' }] : [{
|
|
841
|
+
alias: 'for',
|
|
842
|
+
}]));
|
|
839
843
|
/** Screen-reader label for the button. */
|
|
840
|
-
ariaLabel = input(undefined, {
|
|
841
|
-
|
|
842
|
-
|
|
844
|
+
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel", alias: 'aria-label' }] : [{
|
|
845
|
+
alias: 'aria-label',
|
|
846
|
+
}]));
|
|
843
847
|
/** Screen-reader labelled by id for the button. */
|
|
844
|
-
ariaLabelledby = input(undefined, {
|
|
845
|
-
|
|
846
|
-
|
|
848
|
+
ariaLabelledby = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabelledby", alias: 'aria-labelledby' }] : [{
|
|
849
|
+
alias: 'aria-labelledby',
|
|
850
|
+
}]));
|
|
847
851
|
/** Default aria-label for the toggle if none is provided. */
|
|
848
852
|
_defaultAriaLabel = 'Open timepicker options';
|
|
849
853
|
/** Whether the toggle button is disabled. */
|
|
850
|
-
disabled = input(false, {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute,
|
|
855
|
+
alias: 'disabled' }] : [{
|
|
856
|
+
transform: booleanAttribute,
|
|
857
|
+
alias: 'disabled',
|
|
858
|
+
}]));
|
|
854
859
|
/** Tabindex for the toggle. */
|
|
855
|
-
tabIndex = input(this._defaultTabIndex);
|
|
860
|
+
tabIndex = input(this._defaultTabIndex, ...(ngDevMode ? [{ debugName: "tabIndex" }] : []));
|
|
856
861
|
/** Whether ripples on the toggle should be disabled. */
|
|
857
|
-
disableRipple = input(this._defaultConfig?.disableRipple ?? false, { transform: booleanAttribute });
|
|
862
|
+
disableRipple = input(this._defaultConfig?.disableRipple ?? false, ...(ngDevMode ? [{ debugName: "disableRipple", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
858
863
|
/** Opens the connected timepicker. */
|
|
859
864
|
_open(event) {
|
|
860
865
|
if (this.timepicker() && !this._isDisabled()) {
|
|
@@ -869,10 +874,10 @@ class MatTimepickerToggle {
|
|
|
869
874
|
getAriaLabel() {
|
|
870
875
|
return this.ariaLabelledby() ? null : this.ariaLabel() || this._defaultAriaLabel;
|
|
871
876
|
}
|
|
872
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerToggle, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
873
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.0", type: MatTimepickerToggle, isStandalone: true, selector: "mat-timepicker-toggle", inputs: { timepicker: { classPropertyName: "timepicker", publicName: "for", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null" }, classAttribute: "mat-timepicker-toggle" }, exportAs: ["matTimepickerToggle"], ngImport: i0, template: "<button\n matIconButton\n type=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-label]=\"getAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-expanded]=\"timepicker().isOpen()\"\n [tabIndex]=\"_isDisabled() ? -1 : tabIndex()\"\n [disabled]=\"_isDisabled()\"\n [disableRipple]=\"disableRipple()\">\n\n <ng-content select=\"[matTimepickerToggleIcon]\">\n <svg\n class=\"mat-timepicker-toggle-default-icon\"\n height=\"24px\"\n width=\"24px\"\n viewBox=\"0 -960 960 960\"\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\">\n <path d=\"m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z\"/>\n </svg>\n </ng-content>\n</button>\n", dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
877
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerToggle, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
878
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.0-next.0", type: MatTimepickerToggle, isStandalone: true, selector: "mat-timepicker-toggle", inputs: { timepicker: { classPropertyName: "timepicker", publicName: "for", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null" }, classAttribute: "mat-timepicker-toggle" }, exportAs: ["matTimepickerToggle"], ngImport: i0, template: "<button\n matIconButton\n type=\"button\"\n aria-haspopup=\"listbox\"\n [attr.aria-label]=\"getAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-expanded]=\"timepicker().isOpen()\"\n [tabIndex]=\"_isDisabled() ? -1 : tabIndex()\"\n [disabled]=\"_isDisabled()\"\n [disableRipple]=\"disableRipple()\">\n\n <ng-content select=\"[matTimepickerToggleIcon]\">\n <svg\n class=\"mat-timepicker-toggle-default-icon\"\n height=\"24px\"\n width=\"24px\"\n viewBox=\"0 -960 960 960\"\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\">\n <path d=\"m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z\"/>\n </svg>\n </ng-content>\n</button>\n", dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
874
879
|
}
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerToggle, decorators: [{
|
|
880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerToggle, decorators: [{
|
|
876
881
|
type: Component,
|
|
877
882
|
args: [{ selector: 'mat-timepicker-toggle', host: {
|
|
878
883
|
'class': 'mat-timepicker-toggle',
|
|
@@ -885,11 +890,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImpor
|
|
|
885
890
|
}] });
|
|
886
891
|
|
|
887
892
|
class MatTimepickerModule {
|
|
888
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
889
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerModule, imports: [MatTimepicker, MatTimepickerInput, MatTimepickerToggle], exports: [CdkScrollableModule, MatTimepicker, MatTimepickerInput, MatTimepickerToggle] });
|
|
890
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerModule, imports: [MatTimepicker, MatTimepickerToggle, CdkScrollableModule] });
|
|
893
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
894
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerModule, imports: [MatTimepicker, MatTimepickerInput, MatTimepickerToggle], exports: [CdkScrollableModule, MatTimepicker, MatTimepickerInput, MatTimepickerToggle] });
|
|
895
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerModule, imports: [MatTimepicker, MatTimepickerToggle, CdkScrollableModule] });
|
|
891
896
|
}
|
|
892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: MatTimepickerModule, decorators: [{
|
|
897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.0", ngImport: i0, type: MatTimepickerModule, decorators: [{
|
|
893
898
|
type: NgModule,
|
|
894
899
|
args: [{
|
|
895
900
|
imports: [MatTimepicker, MatTimepickerInput, MatTimepickerToggle],
|