@angular/material 19.2.0-next.1 → 19.2.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/bottom-sheet/index.d.ts +18 -8
- package/button/_button-base.scss +4 -4
- package/checkbox/_checkbox-common.scss +38 -25
- package/chips/index.d.ts +0 -2
- package/core/index.d.ts +1 -0
- package/datepicker/index.d.ts +3 -3
- package/dialog/index.d.ts +10 -3
- package/expansion/index.d.ts +7 -4
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +138 -50
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +14 -14
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +42 -42
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +16 -16
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +52 -53
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +74 -76
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +205 -131
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +123 -43
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion.mjs +97 -41
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field.mjs +68 -43
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list.mjs +51 -51
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +111 -51
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +10 -10
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio.mjs +10 -10
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +174 -69
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +94 -44
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +14 -14
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +16 -16
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +179 -91
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort.mjs +299 -56
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper.mjs +169 -60
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs.mjs +171 -73
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +36 -43
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +46 -19
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +1 -2
- package/menu/index.d.ts +5 -10
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
- package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +2 -2
- package/select/index.d.ts +12 -11
- package/sidenav/index.d.ts +1 -2
- package/snack-bar/index.d.ts +9 -8
- package/sort/index.d.ts +6 -7
- package/stepper/index.d.ts +2 -3
- package/tabs/index.d.ts +1 -2
- package/timepicker/index.d.ts +4 -1
- package/tooltip/index.d.ts +1 -2
package/fesm2022/select.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Overlay, CdkOverlayOrigin, CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, inject, ChangeDetectorRef, ElementRef, EventEmitter, HostAttributeToken, booleanAttribute, numberAttribute, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren, ContentChild, Input, ViewChild, Output, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, ChangeDetectorRef, ElementRef, Renderer2, NgZone, ANIMATION_MODULE_TYPE, EventEmitter, HostAttributeToken, booleanAttribute, numberAttribute, Component, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren, ContentChild, Input, ViewChild, Output, Directive, NgModule } from '@angular/core';
|
|
4
4
|
import { _countGroupLabelsBeforeOption, _getOptionScrollPosition, ErrorStateMatcher, _ErrorStateTracker, MAT_OPTION_PARENT_COMPONENT, MatOption, MAT_OPTGROUP, MatOptionModule, MatCommonModule } from '@angular/material/core';
|
|
5
5
|
export { MatOptgroup, MatOption } from '@angular/material/core';
|
|
6
6
|
import { MAT_FORM_FIELD, MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
@@ -9,43 +9,12 @@ import { ViewportRuler, CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
|
9
9
|
import { _IdGenerator, LiveAnnouncer, removeAriaReferencedId, addAriaReferencedId, ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
10
10
|
import { Directionality } from '@angular/cdk/bidi';
|
|
11
11
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
|
-
import { DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE, hasModifierKey, A } from '@angular/cdk/keycodes';
|
|
12
|
+
import { DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, SPACE, hasModifierKey, A, ESCAPE } from '@angular/cdk/keycodes';
|
|
13
13
|
import { NgControl, Validators, NgForm, FormGroupDirective } from '@angular/forms';
|
|
14
14
|
import { Subject, defer, merge } from 'rxjs';
|
|
15
|
-
import { startWith, switchMap, filter, map,
|
|
16
|
-
import { trigger, transition, query, animateChild, state, style, animate } from '@angular/animations';
|
|
15
|
+
import { startWith, switchMap, filter, map, takeUntil, take } from 'rxjs/operators';
|
|
17
16
|
import { NgClass } from '@angular/common';
|
|
18
17
|
|
|
19
|
-
/**
|
|
20
|
-
* The following are all the animations for the mat-select component, with each
|
|
21
|
-
* const containing the metadata for one animation.
|
|
22
|
-
*
|
|
23
|
-
* The values below match the implementation of the AngularJS Material mat-select animation.
|
|
24
|
-
* @docs-private
|
|
25
|
-
*/
|
|
26
|
-
const matSelectAnimations = {
|
|
27
|
-
/**
|
|
28
|
-
* This animation ensures the select's overlay panel animation (transformPanel) is called when
|
|
29
|
-
* closing the select.
|
|
30
|
-
* This is needed due to https://github.com/angular/angular/issues/23302
|
|
31
|
-
*/
|
|
32
|
-
transformPanelWrap: trigger('transformPanelWrap', [
|
|
33
|
-
transition('* => void', query('@transformPanel', [animateChild()], { optional: true })),
|
|
34
|
-
]),
|
|
35
|
-
/** This animation transforms the select's overlay panel on and off the page. */
|
|
36
|
-
transformPanel: trigger('transformPanel', [
|
|
37
|
-
state('void', style({
|
|
38
|
-
opacity: 0,
|
|
39
|
-
transform: 'scale(1, 0.8)',
|
|
40
|
-
})),
|
|
41
|
-
transition('void => showing', animate('120ms cubic-bezier(0, 0, 0.2, 1)', style({
|
|
42
|
-
opacity: 1,
|
|
43
|
-
transform: 'scale(1, 1)',
|
|
44
|
-
}))),
|
|
45
|
-
transition('* => void', animate('100ms linear', style({ opacity: 0 }))),
|
|
46
|
-
]),
|
|
47
|
-
};
|
|
48
|
-
|
|
49
18
|
// Note that these have been copied over verbatim from
|
|
50
19
|
// `material/select` so that we don't have to expose them publicly.
|
|
51
20
|
/**
|
|
@@ -119,11 +88,15 @@ class MatSelect {
|
|
|
119
88
|
_elementRef = inject(ElementRef);
|
|
120
89
|
_dir = inject(Directionality, { optional: true });
|
|
121
90
|
_idGenerator = inject(_IdGenerator);
|
|
91
|
+
_renderer = inject(Renderer2);
|
|
92
|
+
_ngZone = inject(NgZone);
|
|
122
93
|
_parentFormField = inject(MAT_FORM_FIELD, { optional: true });
|
|
123
94
|
ngControl = inject(NgControl, { self: true, optional: true });
|
|
124
95
|
_liveAnnouncer = inject(LiveAnnouncer);
|
|
125
96
|
_defaultOptions = inject(MAT_SELECT_CONFIG, { optional: true });
|
|
97
|
+
_animationsDisabled = inject(ANIMATION_MODULE_TYPE, { optional: true }) === 'NoopAnimations';
|
|
126
98
|
_initialized = new Subject();
|
|
99
|
+
_cleanupDetach;
|
|
127
100
|
/** All of the defined select options. */
|
|
128
101
|
options;
|
|
129
102
|
// TODO(crisbeto): this is only necessary for the non-MDC select, but it's technically a
|
|
@@ -241,8 +214,6 @@ class MatSelect {
|
|
|
241
214
|
_onTouched = () => { };
|
|
242
215
|
/** ID for the DOM node containing the select's value. */
|
|
243
216
|
_valueId = this._idGenerator.getId('mat-select-value-');
|
|
244
|
-
/** Emits when the panel element is finished transforming in. */
|
|
245
|
-
_panelDoneAnimatingStream = new Subject();
|
|
246
217
|
/** Strategy that will be used to handle scrolling while the select panel is open. */
|
|
247
218
|
_scrollStrategy;
|
|
248
219
|
_overlayPanelClass = this._defaultOptions?.overlayPanelClass || '';
|
|
@@ -430,12 +401,6 @@ class MatSelect {
|
|
|
430
401
|
ngOnInit() {
|
|
431
402
|
this._selectionModel = new SelectionModel(this.multiple);
|
|
432
403
|
this.stateChanges.next();
|
|
433
|
-
// We need `distinctUntilChanged` here, because some browsers will
|
|
434
|
-
// fire the animation end event twice for the same animation. See:
|
|
435
|
-
// https://github.com/angular/angular/issues/24084
|
|
436
|
-
this._panelDoneAnimatingStream
|
|
437
|
-
.pipe(distinctUntilChanged(), takeUntil(this._destroy))
|
|
438
|
-
.subscribe(() => this._panelDoneAnimating(this.panelOpen));
|
|
439
404
|
this._viewportRuler
|
|
440
405
|
.change()
|
|
441
406
|
.pipe(takeUntil(this._destroy))
|
|
@@ -499,6 +464,7 @@ class MatSelect {
|
|
|
499
464
|
}
|
|
500
465
|
}
|
|
501
466
|
ngOnDestroy() {
|
|
467
|
+
this._cleanupDetach?.();
|
|
502
468
|
this._keyManager?.destroy();
|
|
503
469
|
this._destroy.next();
|
|
504
470
|
this._destroy.complete();
|
|
@@ -520,14 +486,22 @@ class MatSelect {
|
|
|
520
486
|
if (this._parentFormField) {
|
|
521
487
|
this._preferredOverlayOrigin = this._parentFormField.getConnectedOverlayOrigin();
|
|
522
488
|
}
|
|
489
|
+
this._cleanupDetach?.();
|
|
523
490
|
this._overlayWidth = this._getOverlayWidth(this._preferredOverlayOrigin);
|
|
524
491
|
this._applyModalPanelOwnership();
|
|
525
492
|
this._panelOpen = true;
|
|
493
|
+
this._overlayDir.positionChange.pipe(take(1)).subscribe(() => {
|
|
494
|
+
this._changeDetectorRef.detectChanges();
|
|
495
|
+
this._positioningSettled();
|
|
496
|
+
});
|
|
497
|
+
this._overlayDir.attachOverlay();
|
|
526
498
|
this._keyManager.withHorizontalOrientation(null);
|
|
527
499
|
this._highlightCorrectOption();
|
|
528
500
|
this._changeDetectorRef.markForCheck();
|
|
529
501
|
// Required for the MDC form field to pick up when the overlay has been opened.
|
|
530
502
|
this.stateChanges.next();
|
|
503
|
+
// Simulate the animation event before we moved away from `@angular/animations`.
|
|
504
|
+
Promise.resolve().then(() => this.openedChange.emit(true));
|
|
531
505
|
}
|
|
532
506
|
/**
|
|
533
507
|
* Track which modal we have modified the `aria-owns` attribute of. When the combobox trigger is
|
|
@@ -587,12 +561,44 @@ class MatSelect {
|
|
|
587
561
|
close() {
|
|
588
562
|
if (this._panelOpen) {
|
|
589
563
|
this._panelOpen = false;
|
|
564
|
+
this._exitAndDetach();
|
|
590
565
|
this._keyManager.withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr');
|
|
591
566
|
this._changeDetectorRef.markForCheck();
|
|
592
567
|
this._onTouched();
|
|
593
568
|
// Required for the MDC form field to pick up when the overlay has been closed.
|
|
594
569
|
this.stateChanges.next();
|
|
570
|
+
// Simulate the animation event before we moved away from `@angular/animations`.
|
|
571
|
+
Promise.resolve().then(() => this.openedChange.emit(false));
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
/** Triggers the exit animation and detaches the overlay at the end. */
|
|
575
|
+
_exitAndDetach() {
|
|
576
|
+
if (this._animationsDisabled || !this.panel) {
|
|
577
|
+
this._overlayDir.detachOverlay();
|
|
578
|
+
return;
|
|
595
579
|
}
|
|
580
|
+
this._ngZone.runOutsideAngular(() => {
|
|
581
|
+
this._cleanupDetach?.();
|
|
582
|
+
this._cleanupDetach = () => {
|
|
583
|
+
cleanupEvent();
|
|
584
|
+
clearTimeout(exitFallbackTimer);
|
|
585
|
+
this._cleanupDetach = undefined;
|
|
586
|
+
};
|
|
587
|
+
const panel = this.panel.nativeElement;
|
|
588
|
+
const cleanupEvent = this._renderer.listen(panel, 'animationend', (event) => {
|
|
589
|
+
if (event.animationName === '_mat-select-exit') {
|
|
590
|
+
this._cleanupDetach?.();
|
|
591
|
+
this._overlayDir.detachOverlay();
|
|
592
|
+
}
|
|
593
|
+
});
|
|
594
|
+
// Since closing the overlay depends on the animation, we have a fallback in case the panel
|
|
595
|
+
// doesn't animate. This can happen in some internal tests that do `* {animation: none}`.
|
|
596
|
+
const exitFallbackTimer = setTimeout(() => {
|
|
597
|
+
this._cleanupDetach?.();
|
|
598
|
+
this._overlayDir.detachOverlay();
|
|
599
|
+
}, 200);
|
|
600
|
+
panel.classList.add('mat-select-panel-exit');
|
|
601
|
+
});
|
|
596
602
|
}
|
|
597
603
|
/**
|
|
598
604
|
* Sets the select's value. Part of the ControlValueAccessor interface
|
|
@@ -739,6 +745,17 @@ class MatSelect {
|
|
|
739
745
|
}
|
|
740
746
|
}
|
|
741
747
|
}
|
|
748
|
+
/** Handles keyboard events coming from the overlay. */
|
|
749
|
+
_handleOverlayKeydown(event) {
|
|
750
|
+
// TODO(crisbeto): prior to #30363 this was being handled inside the overlay directive, but we
|
|
751
|
+
// need control over the animation timing so we do it manually. We should remove the `keydown`
|
|
752
|
+
// listener from `.mat-mdc-select-panel` and handle all the events here. That may cause
|
|
753
|
+
// further test breakages so it's left for a follow-up.
|
|
754
|
+
if (event.keyCode === ESCAPE && !hasModifierKey(event)) {
|
|
755
|
+
event.preventDefault();
|
|
756
|
+
this.close();
|
|
757
|
+
}
|
|
758
|
+
}
|
|
742
759
|
_onFocus() {
|
|
743
760
|
if (!this.disabled) {
|
|
744
761
|
this._focused = true;
|
|
@@ -758,15 +775,6 @@ class MatSelect {
|
|
|
758
775
|
this.stateChanges.next();
|
|
759
776
|
}
|
|
760
777
|
}
|
|
761
|
-
/**
|
|
762
|
-
* Callback that is invoked when the overlay panel has been attached.
|
|
763
|
-
*/
|
|
764
|
-
_onAttached() {
|
|
765
|
-
this._overlayDir.positionChange.pipe(take(1)).subscribe(() => {
|
|
766
|
-
this._changeDetectorRef.detectChanges();
|
|
767
|
-
this._positioningSettled();
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
778
|
/** Returns the theme to be used on the panel. */
|
|
771
779
|
_getPanelTheme() {
|
|
772
780
|
return this._parentFormField ? `mat-${this._parentFormField.color}` : '';
|
|
@@ -1041,7 +1049,7 @@ class MatSelect {
|
|
|
1041
1049
|
}
|
|
1042
1050
|
/** Whether the panel is allowed to open. */
|
|
1043
1051
|
_canOpen() {
|
|
1044
|
-
return !this._panelOpen && !this.disabled && this.options?.length > 0;
|
|
1052
|
+
return !this._panelOpen && !this.disabled && this.options?.length > 0 && !!this._overlayDir;
|
|
1045
1053
|
}
|
|
1046
1054
|
/** Focuses the select element. */
|
|
1047
1055
|
focus(options) {
|
|
@@ -1075,10 +1083,6 @@ class MatSelect {
|
|
|
1075
1083
|
}
|
|
1076
1084
|
return value;
|
|
1077
1085
|
}
|
|
1078
|
-
/** Called when the overlay panel is done animating. */
|
|
1079
|
-
_panelDoneAnimating(isOpen) {
|
|
1080
|
-
this.openedChange.emit(isOpen);
|
|
1081
|
-
}
|
|
1082
1086
|
/**
|
|
1083
1087
|
* Implemented as part of MatFormFieldControl.
|
|
1084
1088
|
* @docs-private
|
|
@@ -1108,13 +1112,13 @@ class MatSelect {
|
|
|
1108
1112
|
// want the label to only float when there's a value.
|
|
1109
1113
|
return this.panelOpen || !this.empty || (this.focused && !!this.placeholder);
|
|
1110
1114
|
}
|
|
1111
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1112
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
1115
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1116
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.3", type: MatSelect, isStandalone: true, selector: "mat-select", inputs: { userAriaDescribedBy: ["aria-describedby", "userAriaDescribedBy"], panelClass: "panelClass", disabled: ["disabled", "disabled", booleanAttribute], disableRipple: ["disableRipple", "disableRipple", booleanAttribute], tabIndex: ["tabIndex", "tabIndex", (value) => (value == null ? 0 : numberAttribute(value))], hideSingleSelectionIndicator: ["hideSingleSelectionIndicator", "hideSingleSelectionIndicator", booleanAttribute], placeholder: "placeholder", required: ["required", "required", booleanAttribute], multiple: ["multiple", "multiple", booleanAttribute], disableOptionCentering: ["disableOptionCentering", "disableOptionCentering", booleanAttribute], compareWith: "compareWith", value: "value", ariaLabel: ["aria-label", "ariaLabel"], ariaLabelledby: ["aria-labelledby", "ariaLabelledby"], errorStateMatcher: "errorStateMatcher", typeaheadDebounceInterval: ["typeaheadDebounceInterval", "typeaheadDebounceInterval", numberAttribute], sortComparator: "sortComparator", id: "id", panelWidth: "panelWidth", canSelectNullableOptions: ["canSelectNullableOptions", "canSelectNullableOptions", booleanAttribute] }, outputs: { openedChange: "openedChange", _openedStream: "opened", _closedStream: "closed", selectionChange: "selectionChange", valueChange: "valueChange" }, host: { attributes: { "role": "combobox", "aria-haspopup": "listbox" }, listeners: { "keydown": "_handleKeydown($event)", "focus": "_onFocus()", "blur": "_onBlur()" }, properties: { "attr.id": "id", "attr.tabindex": "disabled ? -1 : tabIndex", "attr.aria-controls": "panelOpen ? id + \"-panel\" : null", "attr.aria-expanded": "panelOpen", "attr.aria-label": "ariaLabel || null", "attr.aria-required": "required.toString()", "attr.aria-disabled": "disabled.toString()", "attr.aria-invalid": "errorState", "attr.aria-activedescendant": "_getAriaActiveDescendant()", "class.mat-mdc-select-disabled": "disabled", "class.mat-mdc-select-invalid": "errorState", "class.mat-mdc-select-required": "required", "class.mat-mdc-select-empty": "empty", "class.mat-mdc-select-multiple": "multiple" }, classAttribute: "mat-mdc-select" }, providers: [
|
|
1113
1117
|
{ provide: MatFormFieldControl, useExisting: MatSelect },
|
|
1114
1118
|
{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatSelect },
|
|
1115
|
-
], queries: [{ propertyName: "customTrigger", first: true, predicate: MAT_SELECT_TRIGGER, descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionGroups", predicate: MAT_OPTGROUP, descendants: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }, { propertyName: "_overlayDir", first: true, predicate: CdkConnectedOverlay, descendants: true }], exportAs: ["matSelect"], usesOnChanges: true, ngImport: i0, template: "<div cdk-overlay-origin\n class=\"mat-mdc-select-trigger\"\n (click)=\"open()\"\n #fallbackOverlayOrigin=\"cdkOverlayOrigin\"\n #trigger>\n\n <div class=\"mat-mdc-select-value\" [attr.id]=\"_valueId\">\n @if (empty) {\n <span class=\"mat-mdc-select-placeholder mat-mdc-select-min-line\">{{placeholder}}</span>\n } @else {\n <span class=\"mat-mdc-select-value-text\">\n @if (customTrigger) {\n <ng-content select=\"mat-select-trigger\"></ng-content>\n } @else {\n <span class=\"mat-mdc-select-min-line\">{{triggerValue}}</span>\n }\n </span>\n }\n </div>\n\n <div class=\"mat-mdc-select-arrow-wrapper\">\n <div class=\"mat-mdc-select-arrow\">\n <!-- Use an inline SVG, because it works better than a CSS triangle in high contrast mode. -->\n <svg viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M7 10l5 5 5-5z\"/>\n </svg>\n </div>\n </div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayPanelClass]=\"_overlayPanelClass\"\n [cdkConnectedOverlayScrollStrategy]=\"_scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"_preferredOverlayOrigin || fallbackOverlayOrigin\"\n [
|
|
1119
|
+
], queries: [{ propertyName: "customTrigger", first: true, predicate: MAT_SELECT_TRIGGER, descendants: true }, { propertyName: "options", predicate: MatOption, descendants: true }, { propertyName: "optionGroups", predicate: MAT_OPTGROUP, descendants: true }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }, { propertyName: "_overlayDir", first: true, predicate: CdkConnectedOverlay, descendants: true }], exportAs: ["matSelect"], usesOnChanges: true, ngImport: i0, template: "<div cdk-overlay-origin\n class=\"mat-mdc-select-trigger\"\n (click)=\"open()\"\n #fallbackOverlayOrigin=\"cdkOverlayOrigin\"\n #trigger>\n\n <div class=\"mat-mdc-select-value\" [attr.id]=\"_valueId\">\n @if (empty) {\n <span class=\"mat-mdc-select-placeholder mat-mdc-select-min-line\">{{placeholder}}</span>\n } @else {\n <span class=\"mat-mdc-select-value-text\">\n @if (customTrigger) {\n <ng-content select=\"mat-select-trigger\"></ng-content>\n } @else {\n <span class=\"mat-mdc-select-min-line\">{{triggerValue}}</span>\n }\n </span>\n }\n </div>\n\n <div class=\"mat-mdc-select-arrow-wrapper\">\n <div class=\"mat-mdc-select-arrow\">\n <!-- Use an inline SVG, because it works better than a CSS triangle in high contrast mode. -->\n <svg viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M7 10l5 5 5-5z\"/>\n </svg>\n </div>\n </div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayPanelClass]=\"_overlayPanelClass\"\n [cdkConnectedOverlayScrollStrategy]=\"_scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"_preferredOverlayOrigin || fallbackOverlayOrigin\"\n [cdkConnectedOverlayPositions]=\"_positions\"\n [cdkConnectedOverlayWidth]=\"_overlayWidth\"\n (backdropClick)=\"close()\"\n (overlayKeydown)=\"_handleOverlayKeydown($event)\">\n <div\n #panel\n role=\"listbox\"\n tabindex=\"-1\"\n class=\"mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open {{ _getPanelTheme() }}\"\n [class.mat-select-panel-animations-enabled]=\"!_animationsDisabled\"\n [attr.id]=\"id + '-panel'\"\n [attr.aria-multiselectable]=\"multiple\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby()\"\n [ngClass]=\"panelClass\"\n (keydown)=\"_handleKeydown($event)\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}"], dependencies: [{ kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1116
1120
|
}
|
|
1117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelect, decorators: [{
|
|
1118
1122
|
type: Component,
|
|
1119
1123
|
args: [{ selector: 'mat-select', exportAs: 'matSelect', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1120
1124
|
'role': 'combobox',
|
|
@@ -1137,10 +1141,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ng
|
|
|
1137
1141
|
'(keydown)': '_handleKeydown($event)',
|
|
1138
1142
|
'(focus)': '_onFocus()',
|
|
1139
1143
|
'(blur)': '_onBlur()',
|
|
1140
|
-
},
|
|
1144
|
+
}, providers: [
|
|
1141
1145
|
{ provide: MatFormFieldControl, useExisting: MatSelect },
|
|
1142
1146
|
{ provide: MAT_OPTION_PARENT_COMPONENT, useExisting: MatSelect },
|
|
1143
|
-
], imports: [CdkOverlayOrigin, CdkConnectedOverlay, NgClass], template: "<div cdk-overlay-origin\n class=\"mat-mdc-select-trigger\"\n (click)=\"open()\"\n #fallbackOverlayOrigin=\"cdkOverlayOrigin\"\n #trigger>\n\n <div class=\"mat-mdc-select-value\" [attr.id]=\"_valueId\">\n @if (empty) {\n <span class=\"mat-mdc-select-placeholder mat-mdc-select-min-line\">{{placeholder}}</span>\n } @else {\n <span class=\"mat-mdc-select-value-text\">\n @if (customTrigger) {\n <ng-content select=\"mat-select-trigger\"></ng-content>\n } @else {\n <span class=\"mat-mdc-select-min-line\">{{triggerValue}}</span>\n }\n </span>\n }\n </div>\n\n <div class=\"mat-mdc-select-arrow-wrapper\">\n <div class=\"mat-mdc-select-arrow\">\n <!-- Use an inline SVG, because it works better than a CSS triangle in high contrast mode. -->\n <svg viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M7 10l5 5 5-5z\"/>\n </svg>\n </div>\n </div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayPanelClass]=\"_overlayPanelClass\"\n [cdkConnectedOverlayScrollStrategy]=\"_scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"_preferredOverlayOrigin || fallbackOverlayOrigin\"\n [
|
|
1147
|
+
], imports: [CdkOverlayOrigin, CdkConnectedOverlay, NgClass], template: "<div cdk-overlay-origin\n class=\"mat-mdc-select-trigger\"\n (click)=\"open()\"\n #fallbackOverlayOrigin=\"cdkOverlayOrigin\"\n #trigger>\n\n <div class=\"mat-mdc-select-value\" [attr.id]=\"_valueId\">\n @if (empty) {\n <span class=\"mat-mdc-select-placeholder mat-mdc-select-min-line\">{{placeholder}}</span>\n } @else {\n <span class=\"mat-mdc-select-value-text\">\n @if (customTrigger) {\n <ng-content select=\"mat-select-trigger\"></ng-content>\n } @else {\n <span class=\"mat-mdc-select-min-line\">{{triggerValue}}</span>\n }\n </span>\n }\n </div>\n\n <div class=\"mat-mdc-select-arrow-wrapper\">\n <div class=\"mat-mdc-select-arrow\">\n <!-- Use an inline SVG, because it works better than a CSS triangle in high contrast mode. -->\n <svg viewBox=\"0 0 24 24\" width=\"24px\" height=\"24px\" focusable=\"false\" aria-hidden=\"true\">\n <path d=\"M7 10l5 5 5-5z\"/>\n </svg>\n </div>\n </div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayPanelClass]=\"_overlayPanelClass\"\n [cdkConnectedOverlayScrollStrategy]=\"_scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"_preferredOverlayOrigin || fallbackOverlayOrigin\"\n [cdkConnectedOverlayPositions]=\"_positions\"\n [cdkConnectedOverlayWidth]=\"_overlayWidth\"\n (backdropClick)=\"close()\"\n (overlayKeydown)=\"_handleOverlayKeydown($event)\">\n <div\n #panel\n role=\"listbox\"\n tabindex=\"-1\"\n class=\"mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open {{ _getPanelTheme() }}\"\n [class.mat-select-panel-animations-enabled]=\"!_animationsDisabled\"\n [attr.id]=\"id + '-panel'\"\n [attr.aria-multiselectable]=\"multiple\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"_getPanelAriaLabelledby()\"\n [ngClass]=\"panelClass\"\n (keydown)=\"_handleKeydown($event)\">\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: ["@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-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))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:\" \";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}"] }]
|
|
1144
1148
|
}], ctorParameters: () => [], propDecorators: { options: [{
|
|
1145
1149
|
type: ContentChildren,
|
|
1146
1150
|
args: [MatOption, { descendants: true }]
|
|
@@ -1230,10 +1234,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ng
|
|
|
1230
1234
|
* Allows the user to customize the trigger that is displayed when the select has a value.
|
|
1231
1235
|
*/
|
|
1232
1236
|
class MatSelectTrigger {
|
|
1233
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1234
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
1237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1238
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: MatSelectTrigger, isStandalone: true, selector: "mat-select-trigger", providers: [{ provide: MAT_SELECT_TRIGGER, useExisting: MatSelectTrigger }], ngImport: i0 });
|
|
1235
1239
|
}
|
|
1236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelectTrigger, decorators: [{
|
|
1237
1241
|
type: Directive,
|
|
1238
1242
|
args: [{
|
|
1239
1243
|
selector: 'mat-select-trigger',
|
|
@@ -1242,19 +1246,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ng
|
|
|
1242
1246
|
}] });
|
|
1243
1247
|
|
|
1244
1248
|
class MatSelectModule {
|
|
1245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1246
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
|
1249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1250
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: MatSelectModule, imports: [OverlayModule, MatOptionModule, MatCommonModule, MatSelect, MatSelectTrigger], exports: [CdkScrollableModule,
|
|
1247
1251
|
MatFormFieldModule,
|
|
1248
1252
|
MatSelect,
|
|
1249
1253
|
MatSelectTrigger,
|
|
1250
1254
|
MatOptionModule,
|
|
1251
1255
|
MatCommonModule] });
|
|
1252
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
|
1256
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelectModule, providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER], imports: [OverlayModule, MatOptionModule, MatCommonModule, CdkScrollableModule,
|
|
1253
1257
|
MatFormFieldModule,
|
|
1254
1258
|
MatOptionModule,
|
|
1255
1259
|
MatCommonModule] });
|
|
1256
1260
|
}
|
|
1257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: MatSelectModule, decorators: [{
|
|
1258
1262
|
type: NgModule,
|
|
1259
1263
|
args: [{
|
|
1260
1264
|
imports: [OverlayModule, MatOptionModule, MatCommonModule, MatSelect, MatSelectTrigger],
|
|
@@ -1270,6 +1274,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ng
|
|
|
1270
1274
|
}]
|
|
1271
1275
|
}] });
|
|
1272
1276
|
|
|
1277
|
+
/**
|
|
1278
|
+
* The following are all the animations for the mat-select component, with each
|
|
1279
|
+
* const containing the metadata for one animation.
|
|
1280
|
+
*
|
|
1281
|
+
* The values below match the implementation of the AngularJS Material mat-select animation.
|
|
1282
|
+
* @docs-private
|
|
1283
|
+
* @deprecated No longer used, will be removed.
|
|
1284
|
+
* @breaking-change 21.0.0
|
|
1285
|
+
*/
|
|
1286
|
+
const matSelectAnimations = {
|
|
1287
|
+
// Represents
|
|
1288
|
+
// trigger('transformPanelWrap', [
|
|
1289
|
+
// transition('* => void', query('@transformPanel', [animateChild()], {optional: true})),
|
|
1290
|
+
// ])
|
|
1291
|
+
/**
|
|
1292
|
+
* This animation ensures the select's overlay panel animation (transformPanel) is called when
|
|
1293
|
+
* closing the select.
|
|
1294
|
+
* This is needed due to https://github.com/angular/angular/issues/23302
|
|
1295
|
+
*/
|
|
1296
|
+
transformPanelWrap: {
|
|
1297
|
+
type: 7,
|
|
1298
|
+
name: 'transformPanelWrap',
|
|
1299
|
+
definitions: [
|
|
1300
|
+
{
|
|
1301
|
+
type: 1,
|
|
1302
|
+
expr: '* => void',
|
|
1303
|
+
animation: {
|
|
1304
|
+
type: 11,
|
|
1305
|
+
selector: '@transformPanel',
|
|
1306
|
+
animation: [{ type: 9, options: null }],
|
|
1307
|
+
options: { optional: true },
|
|
1308
|
+
},
|
|
1309
|
+
options: null,
|
|
1310
|
+
},
|
|
1311
|
+
],
|
|
1312
|
+
options: {},
|
|
1313
|
+
},
|
|
1314
|
+
// Represents
|
|
1315
|
+
// trigger('transformPanel', [
|
|
1316
|
+
// state(
|
|
1317
|
+
// 'void',
|
|
1318
|
+
// style({
|
|
1319
|
+
// opacity: 0,
|
|
1320
|
+
// transform: 'scale(1, 0.8)',
|
|
1321
|
+
// }),
|
|
1322
|
+
// ),
|
|
1323
|
+
// transition(
|
|
1324
|
+
// 'void => showing',
|
|
1325
|
+
// animate(
|
|
1326
|
+
// '120ms cubic-bezier(0, 0, 0.2, 1)',
|
|
1327
|
+
// style({
|
|
1328
|
+
// opacity: 1,
|
|
1329
|
+
// transform: 'scale(1, 1)',
|
|
1330
|
+
// }),
|
|
1331
|
+
// ),
|
|
1332
|
+
// ),
|
|
1333
|
+
// transition('* => void', animate('100ms linear', style({opacity: 0}))),
|
|
1334
|
+
// ])
|
|
1335
|
+
/** This animation transforms the select's overlay panel on and off the page. */
|
|
1336
|
+
transformPanel: {
|
|
1337
|
+
type: 7,
|
|
1338
|
+
name: 'transformPanel',
|
|
1339
|
+
definitions: [
|
|
1340
|
+
{
|
|
1341
|
+
type: 0,
|
|
1342
|
+
name: 'void',
|
|
1343
|
+
styles: {
|
|
1344
|
+
type: 6,
|
|
1345
|
+
styles: { opacity: 0, transform: 'scale(1, 0.8)' },
|
|
1346
|
+
offset: null,
|
|
1347
|
+
},
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
type: 1,
|
|
1351
|
+
expr: 'void => showing',
|
|
1352
|
+
animation: {
|
|
1353
|
+
type: 4,
|
|
1354
|
+
styles: {
|
|
1355
|
+
type: 6,
|
|
1356
|
+
styles: { opacity: 1, transform: 'scale(1, 1)' },
|
|
1357
|
+
offset: null,
|
|
1358
|
+
},
|
|
1359
|
+
timings: '120ms cubic-bezier(0, 0, 0.2, 1)',
|
|
1360
|
+
},
|
|
1361
|
+
options: null,
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
type: 1,
|
|
1365
|
+
expr: '* => void',
|
|
1366
|
+
animation: {
|
|
1367
|
+
type: 4,
|
|
1368
|
+
styles: { type: 6, styles: { opacity: 0 }, offset: null },
|
|
1369
|
+
timings: '100ms linear',
|
|
1370
|
+
},
|
|
1371
|
+
options: null,
|
|
1372
|
+
},
|
|
1373
|
+
],
|
|
1374
|
+
options: {},
|
|
1375
|
+
},
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1273
1378
|
/**
|
|
1274
1379
|
* Generated bundle index. Do not edit.
|
|
1275
1380
|
*/
|