@camaradesuk/m3e-angular 0.2.0-alpha.7 → 0.2.0-alpha.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.
Files changed (43) hide show
  1. package/README.md +6 -4
  2. package/fesm2022/camaradesuk-m3e-angular.mjs +2515 -79
  3. package/fesm2022/camaradesuk-m3e-angular.mjs.map +1 -1
  4. package/package.json +5 -4
  5. package/src/lib/styles/_index.scss +2 -0
  6. package/src/lib/styles/_mat-exp-styles.scss +2 -0
  7. package/src/lib/styles/components/all-buttons/_common-selectors.scss +7 -6
  8. package/src/lib/styles/components/all-buttons/button/_index.scss +15 -0
  9. package/src/lib/styles/components/all-buttons/button/tokens/_common.scss +18 -0
  10. package/src/lib/styles/components/all-buttons/button/tokens/_l.scss +25 -0
  11. package/src/lib/styles/components/all-buttons/button/tokens/_m.scss +25 -0
  12. package/src/lib/styles/components/all-buttons/button/tokens/_s.scss +25 -0
  13. package/src/lib/styles/components/all-buttons/button/tokens/_xl.scss +25 -0
  14. package/src/lib/styles/components/all-buttons/button/tokens/_xs.scss +30 -5
  15. package/src/lib/styles/components/all-buttons/button-group/_connected-l-corners.scss +2 -78
  16. package/src/lib/styles/components/all-buttons/button-group/_connected-m-corners.scss +2 -78
  17. package/src/lib/styles/components/all-buttons/button-group/_connected-s-corners.scss +2 -80
  18. package/src/lib/styles/components/all-buttons/button-group/_connected-xl-corners.scss +2 -78
  19. package/src/lib/styles/components/all-buttons/button-group/_connected-xs-corners.scss +2 -79
  20. package/src/lib/styles/components/all-buttons/button-group/_index.scss +6 -0
  21. package/src/lib/styles/components/all-buttons/fab/_index.scss +109 -0
  22. package/src/lib/styles/components/all-buttons/icon-button/_index.scss +29 -0
  23. package/src/lib/styles/components/all-buttons/icon-button/configs/_s.scss +1 -1
  24. package/src/lib/styles/components/all-buttons/icon-button/configs/_xl.scss +2 -2
  25. package/src/lib/styles/components/all-buttons/icon-button/tokens/_l.scss +1 -1
  26. package/src/lib/styles/components/all-buttons/icon-button/tokens/_m.scss +1 -1
  27. package/src/lib/styles/components/all-buttons/icon-button/tokens/_s.scss +2 -0
  28. package/src/lib/styles/components/all-buttons/icon-button/tokens/_xl.scss +3 -0
  29. package/src/lib/styles/components/all-buttons/icon-button/tokens/_xs.scss +1 -1
  30. package/src/lib/styles/components/all-buttons/split-button/_connected-l-corners.scss +15 -57
  31. package/src/lib/styles/components/all-buttons/split-button/_connected-m-corners.scss +15 -57
  32. package/src/lib/styles/components/all-buttons/split-button/_connected-s-corners.scss +15 -58
  33. package/src/lib/styles/components/all-buttons/split-button/_connected-xl-corners.scss +15 -57
  34. package/src/lib/styles/components/all-buttons/split-button/_connected-xs-corners.scss +15 -58
  35. package/src/lib/styles/components/all-buttons/split-button/_index.scss +16 -5
  36. package/src/lib/styles/components/all-buttons/utils/_connected-corners.scss +146 -0
  37. package/src/lib/styles/components/all-buttons/utils/_elevated-icon.scss +52 -0
  38. package/src/lib/styles/components/autocomplete/_index.scss +183 -0
  39. package/src/lib/styles/utils/mixins/_button-focus.scss +24 -0
  40. package/src/lib/styles/utils/mixins/_index.scss +1 -0
  41. package/src/styles/styles.css +2139 -323
  42. package/src/styles/styles.css.map +1 -1
  43. package/types/camaradesuk-m3e-angular.d.ts +560 -9
@@ -1,27 +1,34 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ElementRef, model, input, computed, Input, Directive, effect, forwardRef, output, contentChildren, ChangeDetectorRef, NgZone, afterNextRender, DestroyRef, ChangeDetectionStrategy, Component, Injectable, booleanAttribute, signal, ANIMATION_MODULE_TYPE, afterRenderEffect, viewChild, PLATFORM_ID, ViewEncapsulation, APP_ID, TemplateRef, ViewContainerRef, untracked, linkedSignal, isDevMode, afterEveryRender, Renderer2, QueryList, Injector, ViewChildren, ContentChildren, HostAttributeToken, contentChild } from '@angular/core';
3
- import * as i1$1 from '@angular/material/button';
2
+ import { InjectionToken, inject, signal, ElementRef, model, input, computed, Input, Directive, effect, forwardRef, booleanAttribute, output, contentChildren, ChangeDetectorRef, NgZone, afterNextRender, DestroyRef, ChangeDetectionStrategy, Component, ANIMATION_MODULE_TYPE, afterRenderEffect, Injectable, viewChild, PLATFORM_ID, ViewEncapsulation, APP_ID, TemplateRef, ViewContainerRef, untracked, linkedSignal, isDevMode, afterEveryRender, Renderer2, QueryList, Injector, ViewChildren, ContentChildren, contentChild, HostAttributeToken } from '@angular/core';
3
+ import * as i1$2 from '@angular/material/button';
4
4
  import { MatIconButton, MatButton, MatFabButton, MatButtonModule } from '@angular/material/button';
5
5
  import { gsap } from 'gsap';
6
6
  import { MatMenuTrigger, MatMenu } from '@angular/material/menu';
7
+ import { toSignal } from '@angular/core/rxjs-interop';
8
+ import { merge, map, ReplaySubject, Subject } from 'rxjs';
7
9
  import { SelectionModel } from '@angular/cdk/collections';
8
10
  import { NG_VALUE_ACCESSOR, AbstractControl } from '@angular/forms';
9
11
  import { MediaMatcher } from '@angular/cdk/layout';
12
+ import * as i1$1 from '@angular/material/core';
10
13
  import { MATERIAL_ANIMATIONS, MatRipple } from '@angular/material/core';
11
- import { toSignal } from '@angular/core/rxjs-interop';
12
- import { merge, map, ReplaySubject, Subject } from 'rxjs';
13
14
  import { isPlatformBrowser, DOCUMENT, NgTemplateOutlet } from '@angular/common';
14
15
  import { MorphSVGPlugin } from 'gsap/MorphSVGPlugin';
15
16
  import { CustomEase } from 'gsap/CustomEase';
16
- import { FocusMonitor, InteractivityChecker, addAriaReferencedId, removeAriaReferencedId, _IdGenerator, InputModalityDetector, AriaDescriber } from '@angular/cdk/a11y';
17
- import { Directionality } from '@angular/cdk/bidi';
18
- import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
19
- import { TemplatePortal, CdkPortalOutlet } from '@angular/cdk/portal';
17
+ import { FocusMonitor, InteractivityChecker, addAriaReferencedId, removeAriaReferencedId, _IdGenerator, InputModalityDetector, AriaDescriber, FocusKeyManager } from '@angular/cdk/a11y';
18
+ import { Directionality, Dir } from '@angular/cdk/bidi';
19
+ import { Overlay, CdkConnectedOverlay, CdkOverlayOrigin, OverlayConfig } from '@angular/cdk/overlay';
20
+ import { TemplatePortal, DomPortal, CdkPortalOutlet } from '@angular/cdk/portal';
20
21
  import { MatToolbar } from '@angular/material/toolbar';
21
22
  import { MatDrawer, MatDrawerContainer, MatDrawerContent } from '@angular/material/sidenav';
22
23
  import * as i1 from '@angular/material/badge';
23
24
  import { MatBadge } from '@angular/material/badge';
24
25
  import { CdkStep, CdkStepper, CdkStepHeader } from '@angular/cdk/stepper';
26
+ import { Menu, MenuItem } from '@angular/aria/menu';
27
+ import { MatIcon } from '@angular/material/icon';
28
+ import { Combobox, ComboboxPopup, ComboboxWidget } from '@angular/aria/combobox';
29
+ import { Listbox, Option } from '@angular/aria/listbox';
30
+ import { MatFormField, MatLabel } from '@angular/material/form-field';
31
+ import { MatInput } from '@angular/material/input';
25
32
  import { CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
26
33
  import { MatDialogState, MAT_DIALOG_DATA, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
27
34
 
@@ -275,6 +282,7 @@ function computeBouncedWidths(baseWidths, pressedIndex, pressedValue, compressio
275
282
  function createButtonGroupBounce(getButtons) {
276
283
  let buttons = [];
277
284
  let baseWidths = [];
285
+ let originalWidths = new Map();
278
286
  let compressionLimits = [];
279
287
  let pressedIndex = -1;
280
288
  let released = false;
@@ -290,8 +298,13 @@ function createButtonGroupBounce(getButtons) {
290
298
  };
291
299
  const clearWidths = () => {
292
300
  for (const button of buttons) {
293
- button.style.removeProperty('width');
301
+ const original = originalWidths.get(button);
302
+ if (original)
303
+ button.style.width = original;
304
+ else
305
+ button.style.removeProperty('width');
294
306
  }
307
+ originalWidths.clear();
295
308
  };
296
309
  /**
297
310
  * Runs one spring segment from the current (value, velocity) toward
@@ -365,6 +378,7 @@ function createButtonGroupBounce(getButtons) {
365
378
  value = 0;
366
379
  velocity = 0;
367
380
  buttons = nextButtons;
381
+ originalWidths = new Map(buttons.map((element) => [element, element.style.width]));
368
382
  pressedIndex = index;
369
383
  released = false;
370
384
  returning = false;
@@ -423,6 +437,31 @@ const MAT_EXP_ICON_BUTTON_OPTIONS = _iconButtonOptions.token;
423
437
  const provideMatExpIconButtonOptions = _iconButtonOptions.provide;
424
438
  const injectMatExpIconButtonOptions = _iconButtonOptions.inject;
425
439
 
440
+ /** @internal Shared open-state contract for Expressive triggers and button styling. */
441
+ const MAT_EXP_MENU_OPEN_STATE = new InjectionToken('MAT_EXP_MENU_OPEN_STATE');
442
+
443
+ /**
444
+ * Tracks an Expressive trigger on this host, or the given Material trigger through
445
+ * its `menuOpened`/`menuClosed` outputs.
446
+ *
447
+ * This is the single implementation shared by every button-family directive that renders a
448
+ * `data-menu-open` host attribute (`MatExpButton`, `MatExpIconButton`,
449
+ * `MatExpFabMenuTrigger`), replacing a plain `get isMenuOpen()` getter that happened to
450
+ * work only because Angular Material's own state changes triggered change detection.
451
+ *
452
+ * Must be called within an injection context (e.g. a field initializer or the constructor of a
453
+ * directive/component). Returns a false signal when neither trigger is attached.
454
+ */
455
+ function injectIsMenuOpenSignal(matMenuTrigger) {
456
+ const expressive = inject(MAT_EXP_MENU_OPEN_STATE, { optional: true, self: true });
457
+ if (expressive)
458
+ return expressive;
459
+ if (!matMenuTrigger) {
460
+ return signal(false);
461
+ }
462
+ return toSignal(merge(matMenuTrigger.menuOpened.pipe(map(() => true)), matMenuTrigger.menuClosed.pipe(map(() => false))), { initialValue: matMenuTrigger.menuOpen });
463
+ }
464
+
426
465
  /**
427
466
  * Directive to style the Angular Material Icon Button component with latest Material 3 Design System Expressive styles.
428
467
  */
@@ -500,8 +539,10 @@ class MatExpIconButton {
500
539
  this.buttonGroup?._onButtonClick(this);
501
540
  }
502
541
  matMenu = inject(MatMenuTrigger, { optional: true });
542
+ /** @internal Reactive native/Expressive menu state for composed presentation. */
543
+ _isMenuOpen = injectIsMenuOpenSignal(this.matMenu);
503
544
  get isMenuOpen() {
504
- return this.matMenu?.menuOpen ?? false;
545
+ return this._isMenuOpen();
505
546
  }
506
547
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpIconButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
507
548
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", type: MatExpIconButton, isStandalone: true, selector: "[matExpIconButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, toggle: { classPropertyName: "toggle", publicName: "toggle", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: false, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange", shape: "shapeChange", toggle: "toggleChange", value: "valueChange" }, host: { listeners: { "click": "_onButtonClick()" }, properties: { "attr.data-size": "size()", "attr.data-shape": "shape()", "attr.data-appearance": "appearance", "attr.data-state": "state()", "attr.data-toggle": "toggle()", "attr.data-width": "width()", "attr.data-menu-open": "isMenuOpen", "attr.aria-pressed": "ariaPressed()", "class": "matExpIconButtonClass" } }, exportAs: ["matExpIconButton"], ngImport: i0 });
@@ -614,7 +655,8 @@ function bindButtonGroupChildren(config) {
614
655
  if (disabled) {
615
656
  effect(() => {
616
657
  const value = disabled();
617
- children().forEach((child) => child.setDisabled(value ?? false));
658
+ if (value !== undefined)
659
+ children().forEach((child) => child.setDisabled(value));
618
660
  });
619
661
  }
620
662
  }
@@ -650,6 +692,8 @@ class MatExpButtonGroup {
650
692
  /** @default 'single-select' */
651
693
  selection = input(this._options.selection, /* @ts-ignore */
652
694
  ...(ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []));
695
+ /** Prevents user interaction from clearing the last selected button. */
696
+ selectionRequired = input(this._options.selectionRequired ?? false, { ...(ngDevMode ? { debugName: "selectionRequired" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
653
697
  /** @default 'standard' */
654
698
  variant = input(this._options.variant, /* @ts-ignore */
655
699
  ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
@@ -749,6 +793,11 @@ class MatExpButtonGroup {
749
793
  // change detection on every pointer/tick.
750
794
  afterNextRender(() => {
751
795
  this._bounce = createButtonGroupBounce(() => this._childButtonElements());
796
+ const reducedMotion = window.matchMedia?.('(prefers-reduced-motion: reduce)');
797
+ reducedMotion?.addEventListener?.('change', () => {
798
+ if (reducedMotion.matches)
799
+ this._bounce?.destroy();
800
+ }, { signal: this._interactionAbort.signal });
752
801
  this._ngZone.runOutsideAngular(() => this._setupBounceInteractions());
753
802
  });
754
803
  // Snap any in-flight bounce back to rest immediately when a consumer flips
@@ -833,6 +882,32 @@ class MatExpButtonGroup {
833
882
  }
834
883
  }, { signal });
835
884
  }
885
+ /** Arrow navigation preserves native Tab order and uses manual activation. @internal */
886
+ _onGroupKeydown(event) {
887
+ if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey || this.disabled())
888
+ return;
889
+ const keys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'];
890
+ if (!keys.includes(event.key))
891
+ return;
892
+ const target = event.target;
893
+ if (!(target instanceof Element) ||
894
+ target.closest('mat-exp-button-group') !== this._hostElement)
895
+ return;
896
+ const controls = this._childButtonElements().filter((element) => !element.disabled &&
897
+ element.getAttribute('aria-disabled') !== 'true');
898
+ const current = controls.findIndex((element) => element === target || element.contains(target));
899
+ if (current < 0 || !controls.length)
900
+ return;
901
+ const rtl = getComputedStyle(this._hostElement).direction === 'rtl';
902
+ const backwards = event.key === 'ArrowUp' || event.key === (rtl ? 'ArrowRight' : 'ArrowLeft');
903
+ const next = event.key === 'Home'
904
+ ? 0
905
+ : event.key === 'End'
906
+ ? controls.length - 1
907
+ : (current + (backwards ? -1 : 1) + controls.length) % controls.length;
908
+ event.preventDefault();
909
+ controls[next].focus();
910
+ }
836
911
  // ---- ControlValueAccessor ----
837
912
  writeValue(value) {
838
913
  this._setValueAndSync(value);
@@ -844,6 +919,10 @@ class MatExpButtonGroup {
844
919
  this._onTouched = fn;
845
920
  }
846
921
  setDisabledState(isDisabled) {
922
+ // Forms initializes enabled controls with false. Preserve an omitted group
923
+ // override so that initialization does not enable individually disabled children.
924
+ if (!isDisabled && this.disabled() === undefined)
925
+ return;
847
926
  this.disabled.set(isDisabled);
848
927
  }
849
928
  // ---- Button click handler (called by child buttons) ----
@@ -853,8 +932,14 @@ class MatExpButtonGroup {
853
932
  * @internal
854
933
  */
855
934
  _onButtonClick(button) {
935
+ if (this.disabled() || ('disabled' in button && button.disabled))
936
+ return;
856
937
  const isSelected = this._selectionModel.isSelected(button);
857
938
  if (isSelected) {
939
+ if (this.selectionRequired() && this._selectionModel.selected.length === 1) {
940
+ this._onTouched();
941
+ return;
942
+ }
858
943
  this._selectionModel.deselect(button);
859
944
  }
860
945
  else {
@@ -912,7 +997,7 @@ class MatExpButtonGroup {
912
997
  }
913
998
  }
914
999
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
915
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpButtonGroup, isStandalone: true, selector: "mat-exp-button-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableBounce: { classPropertyName: "disableBounce", publicName: "disableBounce", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", selectionChange: "selectionChange" }, host: { attributes: { "role": "group" }, properties: { "class": "matExpButtonGroupClass", "attr.data-variant": "variant()", "attr.data-selection": "selection()", "attr.data-size": "size()", "attr.data-shape": "shape()", "attr.data-appearance": "appearance()", "attr.data-disabled": "disabled()", "attr.aria-disabled": "disabled()" } }, providers: [
1000
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpButtonGroup, isStandalone: true, selector: "mat-exp-button-group", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectionRequired: { classPropertyName: "selectionRequired", publicName: "selectionRequired", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableBounce: { classPropertyName: "disableBounce", publicName: "disableBounce", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { disabled: "disabledChange", selectionChange: "selectionChange" }, host: { attributes: { "role": "group" }, listeners: { "keydown": "_onGroupKeydown($event)" }, properties: { "class": "matExpButtonGroupClass", "attr.data-variant": "variant()", "attr.data-selection": "selection()", "attr.data-size": "size()", "attr.data-shape": "shape()", "attr.data-appearance": "appearance()", "attr.data-disabled": "disabled()", "attr.aria-disabled": "disabled()" } }, providers: [
916
1001
  MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR,
917
1002
  { provide: MAT_EXP_BUTTON_GROUP, useExisting: MatExpButtonGroup },
918
1003
  ], queries: [{ propertyName: "_matExpButtons", predicate: i0.forwardRef(() => MatExpButton), isSignal: true }, { propertyName: "_matExpIconButtons", predicate: i0.forwardRef(() => MatExpIconButton), isSignal: true }], ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -932,8 +1017,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
932
1017
  '[attr.data-appearance]': 'appearance()',
933
1018
  '[attr.data-disabled]': 'disabled()',
934
1019
  '[attr.aria-disabled]': 'disabled()',
1020
+ '(keydown)': '_onGroupKeydown($event)',
935
1021
  }, template: "<ng-content></ng-content>\n" }]
936
- }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], disableBounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableBounce", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], value: [{
1022
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }], selectionRequired: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionRequired", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], disableBounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableBounce", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], value: [{
937
1023
  type: Input
938
1024
  }], _matExpButtons: [{ type: i0.ContentChildren, args: [forwardRef(() => MatExpButton), { isSignal: true }] }], _matExpIconButtons: [{ type: i0.ContentChildren, args: [forwardRef(() => MatExpIconButton), { isSignal: true }] }] } });
939
1025
 
@@ -951,6 +1037,9 @@ class MatExpButton {
951
1037
  /** @default 's' */
952
1038
  size = model(this._options.size, /* @ts-ignore */
953
1039
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
1040
+ /** FAB color role pair. Applies only on a Material FAB host. */
1041
+ fabColor = input(this._options.fabColor ?? 'primary-container', /* @ts-ignore */
1042
+ ...(ngDevMode ? [{ debugName: "fabColor" }] : /* istanbul ignore next */ []));
954
1043
  /** @default 'round' */
955
1044
  shape = model(this._options.shape, /* @ts-ignore */
956
1045
  ...(ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []));
@@ -987,35 +1076,47 @@ class MatExpButton {
987
1076
  /**
988
1077
  * @internal
989
1078
  */
990
- matExpButtonClass = 'mat-exp-button';
1079
+ get matExpButtonClass() {
1080
+ return this.isFab ? 'mat-exp-fab' : 'mat-exp-button';
1081
+ }
1082
+ /** Whether this directive decorates a native Material FAB. */
1083
+ isFab;
991
1084
  /**
992
1085
  * @internal
993
1086
  */
994
1087
  state = input(this._options.state, /* @ts-ignore */
995
1088
  ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
1089
+ /** Regular-button appearance. FAB presentation is controlled by fabColor. */
996
1090
  get appearance() {
997
- return this.matButton.appearance;
1091
+ return this.matButton?.appearance ?? 'text';
998
1092
  }
999
1093
  set appearance(appearance) {
1000
- this.matButton.appearance = appearance;
1094
+ if (this.matButton)
1095
+ this.matButton.appearance = appearance;
1001
1096
  }
1002
1097
  get disabled() {
1003
- return this.matButton.disabled;
1098
+ return this.materialHost.disabled;
1004
1099
  }
1005
1100
  set disabled(disabled) {
1006
- this.matButton.disabled = disabled;
1101
+ this.materialHost.disabled = disabled;
1102
+ }
1103
+ matButton = inject(MatButton, { optional: true, self: true });
1104
+ matFab = inject(MatFabButton, { optional: true, self: true });
1105
+ materialHost = this.matButton ?? this.matFab ?? inject(MatButton);
1106
+ constructor() {
1107
+ this.isFab = this.matFab !== null;
1007
1108
  }
1008
- matButton = inject(MatButton);
1009
1109
  buttonGroup = inject(MatExpButtonGroup, { optional: true });
1010
1110
  _onButtonClick() {
1011
1111
  this.buttonGroup?._onButtonClick(this);
1012
1112
  }
1013
1113
  matMenu = inject(MatMenuTrigger, { optional: true });
1114
+ expressiveMenu = inject(MAT_EXP_MENU_OPEN_STATE, { optional: true, self: true });
1014
1115
  get isMenuOpen() {
1015
- return this.matMenu?.menuOpen ?? false;
1116
+ return this.expressiveMenu?.() ?? this.matMenu?.menuOpen ?? false;
1016
1117
  }
1017
1118
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpButton, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1018
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", type: MatExpButton, isStandalone: true, selector: "[matExpButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, toggle: { classPropertyName: "toggle", publicName: "toggle", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange", shape: "shapeChange", toggle: "toggleChange", value: "valueChange" }, host: { listeners: { "click": "_onButtonClick()" }, properties: { "attr.data-size": "size()", "attr.data-shape": "shape()", "attr.data-state": "state()", "attr.data-toggle": "toggle()", "attr.data-menu-open": "isMenuOpen", "attr.aria-pressed": "ariaPressed()", "class": "matExpButtonClass" } }, exportAs: ["matExpButton"], ngImport: i0 });
1119
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", type: MatExpButton, isStandalone: true, selector: "[matExpButton]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fabColor: { classPropertyName: "fabColor", publicName: "fabColor", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, toggle: { classPropertyName: "toggle", publicName: "toggle", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange", shape: "shapeChange", toggle: "toggleChange", value: "valueChange" }, host: { listeners: { "click": "_onButtonClick()" }, properties: { "attr.data-size": "size()", "attr.data-shape": "shape()", "attr.data-state": "state()", "attr.data-toggle": "toggle()", "attr.data-menu-open": "isMenuOpen", "attr.aria-pressed": "ariaPressed()", "class": "matExpButtonClass", "attr.data-fab-color": "isFab ? fabColor() : null" } }, exportAs: ["matExpButton"], ngImport: i0 });
1019
1120
  }
1020
1121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpButton, decorators: [{
1021
1122
  type: Directive,
@@ -1029,11 +1130,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
1029
1130
  '[attr.data-menu-open]': 'isMenuOpen',
1030
1131
  '[attr.aria-pressed]': 'ariaPressed()',
1031
1132
  '[class]': 'matExpButtonClass',
1133
+ '[attr.data-fab-color]': 'isFab ? fabColor() : null',
1032
1134
  '(click)': '_onButtonClick()',
1033
1135
  },
1034
1136
  exportAs: 'matExpButton',
1035
1137
  }]
1036
- }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }, { type: i0.Output, args: ["shapeChange"] }], toggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggle", required: false }] }, { type: i0.Output, args: ["toggleChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }] } });
1138
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], fabColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fabColor", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }, { type: i0.Output, args: ["shapeChange"] }], toggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggle", required: false }] }, { type: i0.Output, args: ["toggleChange"] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }] } });
1139
+
1140
+ // StandardMotionTokens v0_14_0, DefaultSpatial. Split-button guidelines explicitly
1141
+ // choose the standard scheme for the inward 180-degree menu-chevron rotation.
1142
+ const STANDARD_SPATIAL = { dampingRatio: 0.9, stiffness: 700 };
1143
+ const PROPERTY = '--_mat-exp-split-icon-rotation';
1144
+ const PROGRESS = '--_mat-exp-split-icon-progress';
1145
+ /** @internal Native menu state owns the target; this controller owns only presentation. */
1146
+ function createSplitIconMotion(element, open, media) {
1147
+ let target = open ? 180 : 0;
1148
+ let state = { value: target, velocity: 0 };
1149
+ let from = state;
1150
+ let started = 0;
1151
+ let active = false;
1152
+ let rotationEnabled = true;
1153
+ const saved = [PROPERTY, PROGRESS].map((name) => [
1154
+ name,
1155
+ element.style.getPropertyValue(name),
1156
+ element.style.getPropertyPriority(name),
1157
+ ]);
1158
+ const write = () => {
1159
+ element.style.setProperty(PROPERTY, String(rotationEnabled ? state.value : 0));
1160
+ element.style.setProperty(PROGRESS, String(state.value / 180));
1161
+ };
1162
+ const sample = () => {
1163
+ state = sampleDampedSpring(from.value, target, from.velocity, Math.max(0, gsap.ticker.time - started), STANDARD_SPATIAL);
1164
+ };
1165
+ const stop = () => {
1166
+ gsap.ticker.remove(tick);
1167
+ active = false;
1168
+ };
1169
+ const settle = () => {
1170
+ stop();
1171
+ state = { value: target, velocity: 0 };
1172
+ write();
1173
+ };
1174
+ const tick = () => {
1175
+ sample();
1176
+ write();
1177
+ if (Math.abs(state.value - target) < 0.0001 && Math.abs(state.velocity) < 0.001)
1178
+ settle();
1179
+ };
1180
+ const preferenceChanged = () => {
1181
+ if (media.matches)
1182
+ settle();
1183
+ };
1184
+ if (media.addEventListener)
1185
+ media.addEventListener('change', preferenceChanged);
1186
+ else
1187
+ media.addListener(preferenceChanged);
1188
+ write();
1189
+ return {
1190
+ update(open, animate, rotate = true) {
1191
+ if (active)
1192
+ sample();
1193
+ rotationEnabled = rotate;
1194
+ const next = open ? 180 : 0, changed = next !== target;
1195
+ target = next;
1196
+ if (media.matches || !animate) {
1197
+ settle();
1198
+ return;
1199
+ }
1200
+ if (!changed) {
1201
+ write();
1202
+ return;
1203
+ }
1204
+ from = state;
1205
+ if (!active)
1206
+ gsap.ticker.wake();
1207
+ started = gsap.ticker.time;
1208
+ if (!active) {
1209
+ active = true;
1210
+ gsap.ticker.add(tick);
1211
+ }
1212
+ },
1213
+ destroy() {
1214
+ stop();
1215
+ if (media.removeEventListener)
1216
+ media.removeEventListener('change', preferenceChanged);
1217
+ else
1218
+ media.removeListener(preferenceChanged);
1219
+ for (const [name, value, priority] of saved) {
1220
+ if (value)
1221
+ element.style.setProperty(name, value, priority);
1222
+ else
1223
+ element.style.removeProperty(name);
1224
+ }
1225
+ },
1226
+ };
1227
+ }
1037
1228
 
1038
1229
  /**
1039
1230
  * @internal
@@ -1058,6 +1249,13 @@ class MatExpSplitButton {
1058
1249
  /** @default 'tonal' */
1059
1250
  appearance = model(this._options.appearance, /* @ts-ignore */
1060
1251
  ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
1252
+ /** Rotate the menu chevron inward; opt out when application content owns its rotation. */
1253
+ rotateIcon = input(this._options.rotateIcon ?? true, { ...(ngDevMode ? { debugName: "rotateIcon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1254
+ _media = inject(MediaMatcher);
1255
+ _disabledMotion = inject(ANIMATION_MODULE_TYPE, { optional: true }) === 'NoopAnimations' ||
1256
+ !!inject(MATERIAL_ANIMATIONS, { optional: true })?.animationsDisabled;
1257
+ _motion;
1258
+ _motionElement;
1061
1259
  /**
1062
1260
  * @internal
1063
1261
  */
@@ -1079,6 +1277,20 @@ class MatExpSplitButton {
1079
1277
  _allButtonGroupChildren = computed(() => this._allExpressiveButtons().map(toButtonGroupChild), /* @ts-ignore */
1080
1278
  ...(ngDevMode ? [{ debugName: "_allButtonGroupChildren" }] : /* istanbul ignore next */ []));
1081
1279
  constructor() {
1280
+ afterRenderEffect(() => {
1281
+ const icon = this._matExpIconButtons().at(-1);
1282
+ if (icon?._hostElement !== this._motionElement) {
1283
+ this._motion?.destroy();
1284
+ this._motion = undefined;
1285
+ this._motionElement = icon?._hostElement;
1286
+ }
1287
+ if (!icon)
1288
+ return;
1289
+ const open = icon._isMenuOpen();
1290
+ this._motion ??= createSplitIconMotion(icon._hostElement, open, this._media.matchMedia('(prefers-reduced-motion: reduce)'));
1291
+ this._motion.update(open, !this._disabledMotion, this.rotateIcon());
1292
+ });
1293
+ inject(DestroyRef).onDestroy(() => this._motion?.destroy());
1082
1294
  // Broadcast `size`/`appearance` down to the projected buttons via the narrow
1083
1295
  // `ButtonGroupChild` contract (shared with `MatExpButtonGroup`).
1084
1296
  bindButtonGroupChildren({
@@ -1088,7 +1300,7 @@ class MatExpSplitButton {
1088
1300
  });
1089
1301
  }
1090
1302
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpSplitButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
1091
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpSplitButton, isStandalone: true, selector: "mat-exp-split-button", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange", appearance: "appearanceChange" }, host: { properties: { "attr.data-size": "size()", "attr.data-appearance": "appearance()", "class": "matExpSplitButtonClass" } }, queries: [{ propertyName: "_matExpButtons", predicate: MatExpButton, isSignal: true }, { propertyName: "_matExpIconButtons", predicate: MatExpIconButton, isSignal: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1303
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpSplitButton, isStandalone: true, selector: "mat-exp-split-button", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, rotateIcon: { classPropertyName: "rotateIcon", publicName: "rotateIcon", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { size: "sizeChange", appearance: "appearanceChange" }, host: { properties: { "attr.data-size": "size()", "attr.data-appearance": "appearance()", "class": "matExpSplitButtonClass" } }, queries: [{ propertyName: "_matExpButtons", predicate: MatExpButton, isSignal: true }, { propertyName: "_matExpIconButtons", predicate: MatExpIconButton, isSignal: true }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
1092
1304
  }
1093
1305
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpSplitButton, decorators: [{
1094
1306
  type: Component,
@@ -1102,7 +1314,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
1102
1314
  template: '<ng-content></ng-content>',
1103
1315
  changeDetection: ChangeDetectionStrategy.OnPush,
1104
1316
  }]
1105
- }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }, { type: i0.Output, args: ["appearanceChange"] }], _matExpButtons: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MatExpButton), { isSignal: true }] }], _matExpIconButtons: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MatExpIconButton), { isSignal: true }] }] } });
1317
+ }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }, { type: i0.Output, args: ["appearanceChange"] }], rotateIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateIcon", required: false }] }], _matExpButtons: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MatExpButton), { isSignal: true }] }], _matExpIconButtons: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MatExpIconButton), { isSignal: true }] }] } });
1106
1318
 
1107
1319
  /** @internal Associates native menu instances with their expressive configuration. */
1108
1320
  class FabMenuRegistry {
@@ -1115,13 +1327,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
1115
1327
  args: [{ providedIn: 'root' }]
1116
1328
  }] });
1117
1329
 
1118
- const options$7 = matExpCreateOptions({ color: 'primary', motion: true });
1330
+ const options$8 = matExpCreateOptions({ color: 'primary', motion: true });
1119
1331
  /** Injector-scoped FAB menu defaults. */
1120
- const MAT_EXP_FAB_MENU_OPTIONS = options$7.token;
1332
+ const MAT_EXP_FAB_MENU_OPTIONS = options$8.token;
1121
1333
  /** Override FAB menu defaults without configuring each trigger separately. */
1122
- const provideMatExpFabMenuOptions = options$7.provide;
1334
+ const provideMatExpFabMenuOptions = options$8.provide;
1123
1335
  /** @internal */
1124
- const injectMatExpFabMenuOptions = options$7.inject;
1336
+ const injectMatExpFabMenuOptions = options$8.inject;
1125
1337
 
1126
1338
  /** Configures the official web adaptation: a FAB opening a native Material menu. */
1127
1339
  class MatExpFabMenu {
@@ -1156,26 +1368,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
1156
1368
  args: [{ selector: 'mat-menu[matExpFabMenu]', exportAs: 'matExpFabMenu' }]
1157
1369
  }], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }] } });
1158
1370
 
1159
- /**
1160
- * Builds a `Signal<boolean>` that reactively tracks whether the given `MatMenuTrigger`'s menu
1161
- * is currently open, fed by its `menuOpened`/`menuClosed` outputs.
1162
- *
1163
- * This is the single implementation shared by every button-family directive that renders a
1164
- * `data-menu-open` host attribute (`MatExpButton`, `MatExpIconButton`,
1165
- * `MatExpFabMenuTrigger`), replacing a plain `get isMenuOpen()` getter that happened to
1166
- * work only because Angular Material's own state changes triggered change detection.
1167
- *
1168
- * Must be called within an injection context (e.g. a field initializer or the constructor of a
1169
- * directive/component). Returns a signal that is always `false` when `matMenuTrigger` is
1170
- * `null`/`undefined` (no menu attached to this host).
1171
- */
1172
- function injectIsMenuOpenSignal(matMenuTrigger) {
1173
- if (!matMenuTrigger) {
1174
- return signal(false);
1175
- }
1176
- return toSignal(merge(matMenuTrigger.menuOpened.pipe(map(() => true)), matMenuTrigger.menuClosed.pipe(map(() => false))), { initialValue: matMenuTrigger.menuOpen });
1177
- }
1178
-
1179
1371
  /** @internal Browser-only controller. GSAP supplies the clock, springs preserve velocity. */
1180
1372
  function createFabTriggerMotion(element, open, media) {
1181
1373
  let target = Number(open);
@@ -2285,11 +2477,11 @@ const MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS = {
2285
2477
  touchGestures: true,
2286
2478
  disabled: false,
2287
2479
  };
2288
- const options$6 = matExpCreateOptions(MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS);
2289
- const MAT_EXP_RICH_TOOLTIP_OPTIONS = options$6.token;
2290
- const provideMatExpRichTooltipOptions = options$6.provide;
2480
+ const options$7 = matExpCreateOptions(MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS);
2481
+ const MAT_EXP_RICH_TOOLTIP_OPTIONS = options$7.token;
2482
+ const provideMatExpRichTooltipOptions = options$7.provide;
2291
2483
  /** @internal */
2292
- const injectMatExpRichTooltipOptions = options$6.inject;
2484
+ const injectMatExpRichTooltipOptions = options$7.inject;
2293
2485
 
2294
2486
  // Web adaptation: a brief opacity entrance; M3 tooltip guidance mandates no spring choreography.
2295
2487
  const ENTER_DURATION_SECONDS = 0.15;
@@ -2784,13 +2976,13 @@ const MAT_EXP_TOOLBAR_DEFAULT_OPTIONS = {
2784
2976
  appearance: 'standard',
2785
2977
  alignment: 'auto',
2786
2978
  };
2787
- const options$5 = matExpCreateOptions(MAT_EXP_TOOLBAR_DEFAULT_OPTIONS);
2979
+ const options$6 = matExpCreateOptions(MAT_EXP_TOOLBAR_DEFAULT_OPTIONS);
2788
2980
  /** Defaults for the toolbar directive. Prefer the merging provider function. */
2789
- const MAT_EXP_TOOLBAR_OPTIONS = options$5.token;
2981
+ const MAT_EXP_TOOLBAR_OPTIONS = options$6.token;
2790
2982
  /** Override toolbar defaults at any injector level. */
2791
- const provideMatExpToolbarOptions = options$5.provide;
2983
+ const provideMatExpToolbarOptions = options$6.provide;
2792
2984
  /** @internal */
2793
- const injectMatExpToolbarOptions = options$5.inject;
2985
+ const injectMatExpToolbarOptions = options$6.inject;
2794
2986
 
2795
2987
  // Custom playfulMotionScheme.defaultSpatialSpec from the official article,
2796
2988
  // not a named Expressive preset or a toolbar-specific token.
@@ -3090,11 +3282,11 @@ const MAT_EXP_LIST_DEFAULT_OPTIONS = {
3090
3282
  appearance: 'segmented',
3091
3283
  textWrap: 'wrap',
3092
3284
  };
3093
- const options$4 = matExpCreateOptions(MAT_EXP_LIST_DEFAULT_OPTIONS);
3094
- const MAT_EXP_LIST_OPTIONS = options$4.token;
3095
- const provideMatExpListOptions = options$4.provide;
3285
+ const options$5 = matExpCreateOptions(MAT_EXP_LIST_DEFAULT_OPTIONS);
3286
+ const MAT_EXP_LIST_OPTIONS = options$5.token;
3287
+ const provideMatExpListOptions = options$5.provide;
3096
3288
  /** @internal */
3097
- const injectMatExpListOptions = options$4.inject;
3289
+ const injectMatExpListOptions = options$5.inject;
3098
3290
 
3099
3291
  /**
3100
3292
  * Opt-in Expressive presentation. Material owns interaction, focus and forms.
@@ -3166,11 +3358,11 @@ const MAT_EXP_SEARCH_DEFAULT_OPTIONS = {
3166
3358
  clearLabel: 'Clear search',
3167
3359
  closeOnBackdrop: true,
3168
3360
  };
3169
- const options$3 = matExpCreateOptions(MAT_EXP_SEARCH_DEFAULT_OPTIONS);
3170
- const MAT_EXP_SEARCH_OPTIONS = options$3.token;
3171
- const provideMatExpSearchOptions = options$3.provide;
3361
+ const options$4 = matExpCreateOptions(MAT_EXP_SEARCH_DEFAULT_OPTIONS);
3362
+ const MAT_EXP_SEARCH_OPTIONS = options$4.token;
3363
+ const provideMatExpSearchOptions = options$4.provide;
3172
3364
  /** @internal */
3173
- const injectMatExpSearchOptions = options$3.inject;
3365
+ const injectMatExpSearchOptions = options$4.inject;
3174
3366
 
3175
3367
  /** Marks a native result button or link for Arrow/Home/End navigation. Keep its native semantics. */
3176
3368
  class MatExpSearchResult {
@@ -3918,11 +4110,11 @@ const MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS = {
3918
4110
  collapsedLayout: 'stacked',
3919
4111
  peek: false,
3920
4112
  };
3921
- const options$2 = matExpCreateOptions(MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS);
3922
- const MAT_EXP_NAVIGATION_RAIL_OPTIONS = options$2.token;
3923
- const provideMatExpNavigationRailOptions = options$2.provide;
4113
+ const options$3 = matExpCreateOptions(MAT_EXP_NAVIGATION_RAIL_DEFAULT_OPTIONS);
4114
+ const MAT_EXP_NAVIGATION_RAIL_OPTIONS = options$3.token;
4115
+ const provideMatExpNavigationRailOptions = options$3.provide;
3924
4116
  /** @internal */
3925
- const injectMatExpNavigationRailOptions = options$2.inject;
4117
+ const injectMatExpNavigationRailOptions = options$3.inject;
3926
4118
 
3927
4119
  /** Hover intent before a pointer peek opens, and grace before it closes (SyRF timings). */
3928
4120
  const PEEK_OPEN_DELAY = 120;
@@ -5260,16 +5452,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
5260
5452
  }]
5261
5453
  }], ctorParameters: () => [], propDecorators: { _row: [{ type: i0.ViewChild, args: ['row', { isSignal: true }] }], _indicator: [{ type: i0.ViewChild, args: ['indicator', { isSignal: true }] }], _children: [{ type: i0.ViewChild, args: ['children', { isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }] } });
5262
5454
 
5263
- const options$1 = matExpCreateOptions({
5455
+ const options$2 = matExpCreateOptions({
5264
5456
  motion: 'system',
5265
5457
  closeLabel: 'Close dialog',
5266
5458
  adaptiveWidth: undefined,
5267
5459
  compactActions: 'header',
5268
5460
  });
5269
- const MAT_EXP_DIALOG_OPTIONS = options$1.token;
5270
- const provideMatExpDialogOptions = options$1.provide;
5461
+ const MAT_EXP_DIALOG_OPTIONS = options$2.token;
5462
+ const provideMatExpDialogOptions = options$2.provide;
5271
5463
  /** @internal */
5272
- const injectMatExpDialogOptions = options$1.inject;
5464
+ const injectMatExpDialogOptions = options$2.inject;
5273
5465
  /** @internal Context is supplied at open time, not inferred from consumer DOM. */
5274
5466
  const MAT_EXP_DIALOG_CONTEXT = new InjectionToken('MatExpDialog context');
5275
5467
  /**
@@ -5648,11 +5840,11 @@ const MAT_EXP_STEPPER_DEFAULT_OPTIONS = {
5648
5840
  completedLabel: 'Completed',
5649
5841
  errorLabel: 'Has errors',
5650
5842
  };
5651
- const options = matExpCreateOptions(MAT_EXP_STEPPER_DEFAULT_OPTIONS);
5652
- const MAT_EXP_STEPPER_OPTIONS = options.token;
5653
- const provideMatExpStepperOptions = options.provide;
5843
+ const options$1 = matExpCreateOptions(MAT_EXP_STEPPER_DEFAULT_OPTIONS);
5844
+ const MAT_EXP_STEPPER_OPTIONS = options$1.token;
5845
+ const provideMatExpStepperOptions = options$1.provide;
5654
5846
  /** @internal */
5655
- const injectMatExpStepperOptions = options.inject;
5847
+ const injectMatExpStepperOptions = options$1.inject;
5656
5848
 
5657
5849
  /**
5658
5850
  * Mirrors CDK gating for reactive and signal-form step controls. CDK marks the current step as
@@ -5997,6 +6189,2250 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
5997
6189
  args: [CdkStepHeader]
5998
6190
  }], _viewport: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }], _indicator: [{ type: i0.ViewChild, args: ['indicator', { isSignal: true }] }], _headers: [{ type: i0.ViewChild, args: ['headers', { isSignal: true }] }], _measure: [{ type: i0.ViewChild, args: ['measure', { isSignal: true }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }] } });
5999
6191
 
6192
+ const MAT_EXP_MENU_DEFAULT_OPTIONS = {
6193
+ color: 'standard',
6194
+ density: 0,
6195
+ separation: 'divider',
6196
+ motion: true,
6197
+ filterLabel: 'Filter options',
6198
+ emptyLabel: 'No matching options',
6199
+ };
6200
+ const options = matExpCreateOptions(MAT_EXP_MENU_DEFAULT_OPTIONS);
6201
+ const MAT_EXP_MENU_OPTIONS = options.token;
6202
+ const provideMatExpMenuOptions = options.provide;
6203
+ const injectMatExpMenuOptions = options.inject;
6204
+
6205
+ /** Lazy authored menu content. Named context values come from matExpMenuTriggerData. */
6206
+ class MatExpMenuContent {
6207
+ /** @internal */
6208
+ template = inject(TemplateRef);
6209
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
6210
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.3", type: MatExpMenuContent, isStandalone: true, selector: "ng-template[matExpMenuContent]", ngImport: i0 });
6211
+ }
6212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuContent, decorators: [{
6213
+ type: Directive,
6214
+ args: [{ selector: 'ng-template[matExpMenuContent]' }]
6215
+ }] });
6216
+ /** @internal Context for authored items, supplied by their rendered menu surface. */
6217
+ const MAT_EXP_MENU_SURFACE = new InjectionToken('MatExpMenuSurface');
6218
+
6219
+ /** @internal Capture rendered positions before updating the filtered collection. */
6220
+ function snapshotMenuRects(elements) {
6221
+ return new Map(elements.map((element) => [element, element.getBoundingClientRect()]));
6222
+ }
6223
+ /**
6224
+ * @internal GSAP rendering with the real M3 Expressive fast spatial/effects springs.
6225
+ * Analytical position and velocity survive interrupted presence, shape and FLIP
6226
+ * transitions. The 0.8 entry/exit scale is a web adaptation, not a normative token.
6227
+ * The caller supplies transform-origin and retains the panel until exit completes.
6228
+ */
6229
+ function createMenuMotion(panel, media) {
6230
+ let destroyed = false;
6231
+ let ticking = false;
6232
+ let completion;
6233
+ let exitTimer;
6234
+ const cancelExitTimer = () => {
6235
+ clearTimeout(exitTimer);
6236
+ exitTimer = undefined;
6237
+ };
6238
+ const springs = new Map();
6239
+ const saved = new Map();
6240
+ const remember = (element, properties) => {
6241
+ let styles = saved.get(element);
6242
+ if (!styles)
6243
+ saved.set(element, (styles = new Map()));
6244
+ for (const property of properties) {
6245
+ if (!styles.has(property))
6246
+ styles.set(property, [
6247
+ element.style.getPropertyValue(property),
6248
+ element.style.getPropertyPriority(property),
6249
+ ]);
6250
+ }
6251
+ };
6252
+ const channel = (element, property, initial) => {
6253
+ let channels = springs.get(element);
6254
+ if (!channels)
6255
+ springs.set(element, (channels = new Map()));
6256
+ let spring = channels.get(property);
6257
+ if (!spring) {
6258
+ spring = {
6259
+ element,
6260
+ property,
6261
+ value: initial,
6262
+ velocity: 0,
6263
+ from: initial,
6264
+ fromVelocity: 0,
6265
+ target: initial,
6266
+ started: 0,
6267
+ active: false,
6268
+ config: property === 'opacity' ? FAST_EFFECTS_SPRING : FAST_SPATIAL_SPRING,
6269
+ };
6270
+ channels.set(property, spring);
6271
+ }
6272
+ return spring;
6273
+ };
6274
+ const each = (action) => {
6275
+ for (const channels of springs.values())
6276
+ for (const spring of channels.values())
6277
+ action(spring);
6278
+ };
6279
+ const write = (spring) => {
6280
+ if (spring.property === 'borderRadius') {
6281
+ // GSAP's shorthand expansion drops autoRound; address corners directly
6282
+ // so interrupted springs retain visible subpixel position and velocity.
6283
+ const radius = `${spring.value}px`;
6284
+ gsap.set(spring.element, {
6285
+ autoRound: false,
6286
+ borderTopLeftRadius: radius,
6287
+ borderTopRightRadius: radius,
6288
+ borderBottomRightRadius: radius,
6289
+ borderBottomLeftRadius: radius,
6290
+ });
6291
+ }
6292
+ else
6293
+ gsap.set(spring.element, { [spring.property]: spring.value });
6294
+ };
6295
+ const settled = (spring) => Math.abs(spring.value - spring.target) < 0.0001 && Math.abs(spring.velocity) < 0.001;
6296
+ const finish = (spring) => {
6297
+ spring.value = spring.target;
6298
+ spring.velocity = 0;
6299
+ spring.active = false;
6300
+ write(spring);
6301
+ };
6302
+ const sample = (spring, now) => {
6303
+ if (!spring.active)
6304
+ return;
6305
+ const state = sampleDampedSpring(spring.from, spring.target, spring.fromVelocity, Math.max(0, now - spring.started), spring.config);
6306
+ spring.value = state.value;
6307
+ spring.velocity = state.velocity;
6308
+ if (spring.property === 'opacity' && (spring.value < 0 || spring.value > 1)) {
6309
+ spring.value = Math.max(0, Math.min(1, spring.value));
6310
+ spring.velocity = 0;
6311
+ }
6312
+ if (settled(spring))
6313
+ finish(spring);
6314
+ };
6315
+ // Wake before recording start times: adding a ticker can synchronously render.
6316
+ // Use monotonic elapsed time rather than GSAP's lag-smoothed ticker time, so
6317
+ // long rendering gaps cannot prolong filtering or leave an exiting popup mounted.
6318
+ const now = () => {
6319
+ if (!ticking)
6320
+ gsap.ticker.wake();
6321
+ return performance.now() / 1000;
6322
+ };
6323
+ const retarget = (spring, target, animate, time, from, config) => {
6324
+ sample(spring, time);
6325
+ if (config)
6326
+ spring.config = config;
6327
+ if (from !== undefined)
6328
+ spring.value = from;
6329
+ spring.target = target;
6330
+ spring.from = spring.value;
6331
+ spring.fromVelocity = spring.velocity;
6332
+ spring.started = time;
6333
+ spring.active = animate && !media.matches && !settled(spring);
6334
+ if (!spring.active)
6335
+ finish(spring);
6336
+ else
6337
+ write(spring);
6338
+ };
6339
+ remember(panel, ['transform', 'translate', 'rotate', 'scale', 'opacity', 'border-radius']);
6340
+ const scale = channel(panel, 'scale', 0.8);
6341
+ const opacity = channel(panel, 'opacity', 0);
6342
+ write(scale);
6343
+ write(opacity);
6344
+ const stop = () => {
6345
+ if (ticking)
6346
+ gsap.ticker.remove(tick);
6347
+ ticking = false;
6348
+ };
6349
+ const flush = () => {
6350
+ let active = false;
6351
+ each((spring) => {
6352
+ active ||= spring.active;
6353
+ });
6354
+ if (active && !ticking) {
6355
+ ticking = true;
6356
+ gsap.ticker.add(tick);
6357
+ }
6358
+ else if (!active)
6359
+ stop();
6360
+ if (!scale.active && !opacity.active && completion) {
6361
+ const callback = completion;
6362
+ completion = undefined;
6363
+ cancelExitTimer();
6364
+ callback();
6365
+ }
6366
+ };
6367
+ const tick = () => {
6368
+ const time = performance.now() / 1000;
6369
+ each((spring) => {
6370
+ if (spring.active) {
6371
+ sample(spring, time);
6372
+ write(spring);
6373
+ }
6374
+ });
6375
+ flush();
6376
+ };
6377
+ // Browsers may suspend animation frames. Exit disposal must still progress; sample the same springs, without truncating
6378
+ // their response or changing the shared GSAP scheduler.
6379
+ const pollExit = () => {
6380
+ exitTimer = undefined;
6381
+ if (destroyed || !completion)
6382
+ return;
6383
+ // Schedule first so completion or reopening can cancel the next poll.
6384
+ exitTimer = setTimeout(pollExit, 100);
6385
+ tick();
6386
+ };
6387
+ const settle = () => {
6388
+ each(finish);
6389
+ stop();
6390
+ flush();
6391
+ };
6392
+ const preferenceChanged = () => {
6393
+ if (media.matches && !destroyed)
6394
+ settle();
6395
+ };
6396
+ media.addEventListener('change', preferenceChanged);
6397
+ return {
6398
+ settle() {
6399
+ if (!destroyed)
6400
+ settle();
6401
+ },
6402
+ setOpen(open, animate = true, complete, spatial = FAST_SPATIAL_SPRING) {
6403
+ if (destroyed)
6404
+ return;
6405
+ cancelExitTimer();
6406
+ const time = now();
6407
+ completion = complete;
6408
+ retarget(scale, open ? 1 : 0.8, animate, time, undefined, spatial);
6409
+ retarget(opacity, Number(open), animate, time);
6410
+ flush();
6411
+ if (!open && completion && !destroyed)
6412
+ exitTimer = setTimeout(pollExit, 100);
6413
+ },
6414
+ setActive(active, animate = true) {
6415
+ if (destroyed)
6416
+ return;
6417
+ const style = panel.ownerDocument.defaultView?.getComputedStyle(panel);
6418
+ const initial = parseFloat(style?.borderRadius || style?.borderTopLeftRadius || '0') || 0;
6419
+ retarget(channel(panel, 'borderRadius', initial), active ? 16 : 8, animate, now());
6420
+ flush();
6421
+ },
6422
+ relocate(before, elements, animate = true, spatial = FAST_SPATIAL_SPRING, maxTravel) {
6423
+ if (destroyed)
6424
+ return;
6425
+ const time = now();
6426
+ const retained = new Set(elements);
6427
+ // Preserve velocities before clearing old translations to measure final
6428
+ // layout. FLIP rebases position into the new layout's coordinates only.
6429
+ for (const [element, channels] of springs) {
6430
+ if (element === panel)
6431
+ continue;
6432
+ for (const spring of channels.values()) {
6433
+ sample(spring, time);
6434
+ if (!retained.has(element) || !animate || media.matches)
6435
+ finish(spring);
6436
+ }
6437
+ gsap.set(element, { x: 0, y: 0 });
6438
+ }
6439
+ if (!animate || media.matches) {
6440
+ flush();
6441
+ return;
6442
+ }
6443
+ const after = snapshotMenuRects(elements);
6444
+ for (const element of elements) {
6445
+ const previous = before.get(element);
6446
+ const next = after.get(element);
6447
+ const dx = previous ? previous.left - next.left : 0;
6448
+ const dy = previous ? previous.top - next.top : 0;
6449
+ const limit = maxTravel ? Math.max(0, maxTravel(element)) : Number.POSITIVE_INFINITY;
6450
+ const rebased = Math.abs(dx) > limit || Math.abs(dy) > limit;
6451
+ const x = Math.max(-limit, Math.min(limit, dx));
6452
+ const y = Math.max(-limit, Math.min(limit, dy));
6453
+ if (previous && x === 0 && y === 0 && !springs.has(element))
6454
+ continue;
6455
+ remember(element, ['transform', 'translate', 'rotate', 'scale', 'opacity']);
6456
+ retarget(channel(element, 'x', x), 0, true, time, x, spatial);
6457
+ retarget(channel(element, 'y', y), 0, true, time, y, spatial);
6458
+ // Large list changes start near the destination and fade into that slot,
6459
+ // rather than sending readable text through newly inserted neighbours.
6460
+ retarget(channel(element, 'opacity', previous ? 1 : 0), 1, true, time, rebased ? 0 : undefined);
6461
+ }
6462
+ flush();
6463
+ },
6464
+ destroy() {
6465
+ if (destroyed)
6466
+ return;
6467
+ destroyed = true;
6468
+ completion = undefined;
6469
+ cancelExitTimer();
6470
+ stop();
6471
+ springs.clear();
6472
+ media.removeEventListener('change', preferenceChanged);
6473
+ for (const [element, styles] of saved) {
6474
+ for (const [property, [value, priority]] of styles) {
6475
+ if (value)
6476
+ element.style.setProperty(property, value, priority);
6477
+ else
6478
+ element.style.removeProperty(property);
6479
+ }
6480
+ // CSSPlugin clearProps reparses transforms immediately, temporarily attaching
6481
+ // detached rows and forcing layout for each one. Invalidate the same cache
6482
+ // lazily so the next GSAP consumer reads the restored styles instead.
6483
+ if (element._gsap)
6484
+ element._gsap['uncache'] = 1;
6485
+ }
6486
+ saved.clear();
6487
+ },
6488
+ };
6489
+ }
6490
+
6491
+ /** @internal Rendering and Aria interaction surface; consumers use MatExpMenu. */
6492
+ class MatExpMenuSurface {
6493
+ owner = input.required(/* @ts-ignore */
6494
+ ...(ngDevMode ? [{ debugName: "owner" }] : /* istanbul ignore next */ []));
6495
+ items = input([], /* @ts-ignore */
6496
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
6497
+ root = input(false, /* @ts-ignore */
6498
+ ...(ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []));
6499
+ parentOrigin = input(/* @ts-ignore */
6500
+ ...(ngDevMode ? [undefined, { debugName: "parentOrigin" }] : /* istanbul ignore next */ []));
6501
+ parentMenu = input(/* @ts-ignore */
6502
+ ...(ngDevMode ? [undefined, { debugName: "parentMenu" }] : /* istanbul ignore next */ []));
6503
+ _menu = viewChild('menu', /* @ts-ignore */
6504
+ ...(ngDevMode ? [{ debugName: "_menu" }] : /* istanbul ignore next */ []));
6505
+ _shown = signal(false, /* @ts-ignore */
6506
+ ...(ngDevMode ? [{ debugName: "_shown" }] : /* istanbul ignore next */ []));
6507
+ _scrollable = signal(false, /* @ts-ignore */
6508
+ ...(ngDevMode ? [{ debugName: "_scrollable" }] : /* istanbul ignore next */ []));
6509
+ _focused = signal(true, /* @ts-ignore */
6510
+ ...(ngDevMode ? [{ debugName: "_focused" }] : /* istanbul ignore next */ []));
6511
+ _surface = viewChild.required('surface', /* @ts-ignore */
6512
+ ...(ngDevMode ? [{ debugName: "_surface" }] : /* istanbul ignore next */ []));
6513
+ _list = viewChild.required('list', /* @ts-ignore */
6514
+ ...(ngDevMode ? [{ debugName: "_list" }] : /* istanbul ignore next */ []));
6515
+ _input = viewChild('filter', /* @ts-ignore */
6516
+ ...(ngDevMode ? [{ debugName: "_input" }] : /* istanbul ignore next */ []));
6517
+ _host = inject(ElementRef);
6518
+ _overlay = inject(Overlay);
6519
+ _direction = inject(Directionality);
6520
+ _document = inject(DOCUMENT);
6521
+ _id = inject(_IdGenerator).getId('mat-exp-menu-panel-');
6522
+ _menuId = computed(() => this.root() && !this.owner().filterable() ? this.owner()._id : this._id, /* @ts-ignore */
6523
+ ...(ngDevMode ? [{ debugName: "_menuId" }] : /* istanbul ignore next */ []));
6524
+ _groups = computed(() => {
6525
+ const query = this.root() ? this.owner().query().trim().toLocaleLowerCase() : '';
6526
+ const groups = [];
6527
+ let loose = [];
6528
+ const flush = () => {
6529
+ if (loose.length) {
6530
+ groups.push({ id: 'items-' + groups.length, items: loose });
6531
+ loose = [];
6532
+ }
6533
+ };
6534
+ const matches = (item) => !query ||
6535
+ [item.label, item.supportingText, item.trailingText]
6536
+ .filter(Boolean)
6537
+ .join(' ')
6538
+ .toLocaleLowerCase()
6539
+ .includes(query);
6540
+ for (const entry of this.items()) {
6541
+ if (entry.type === 'group') {
6542
+ flush();
6543
+ const items = entry.items.filter(matches);
6544
+ if (items.length)
6545
+ groups.push({ id: entry.id, label: entry.label, items });
6546
+ }
6547
+ else if (matches(entry))
6548
+ loose.push(entry);
6549
+ }
6550
+ flush();
6551
+ return groups;
6552
+ }, /* @ts-ignore */
6553
+ ...(ngDevMode ? [{ debugName: "_groups" }] : /* istanbul ignore next */ []));
6554
+ _count = computed(() => this._groups().reduce((sum, group) => sum + group.items.length, 0), /* @ts-ignore */
6555
+ ...(ngDevMode ? [{ debugName: "_count" }] : /* istanbul ignore next */ []));
6556
+ _contentInjector = Injector.create({
6557
+ providers: [{ provide: MAT_EXP_MENU_SURFACE, useValue: this }],
6558
+ parent: inject(Injector),
6559
+ });
6560
+ _authoredItems = signal([], /* @ts-ignore */
6561
+ ...(ngDevMode ? [{ debugName: "_authoredItems" }] : /* istanbul ignore next */ []));
6562
+ _focusOptions = new QueryList();
6563
+ _keys = new FocusKeyManager(this._focusOptions)
6564
+ .withWrap()
6565
+ .withHomeAndEnd()
6566
+ .withTypeAhead()
6567
+ .skipPredicate(() => false);
6568
+ _focusMonitor = inject(FocusMonitor);
6569
+ _inputModality = inject(InputModalityDetector);
6570
+ _submenus = new Map();
6571
+ _contentCount = computed(() => this.owner()._content() ? this._authoredItems().length : this._count(), /* @ts-ignore */
6572
+ ...(ngDevMode ? [{ debugName: "_contentCount" }] : /* istanbul ignore next */ []));
6573
+ _resetPending = false;
6574
+ _motion;
6575
+ _overlayRef;
6576
+ _observer;
6577
+ _before;
6578
+ _wasOpen = false;
6579
+ _typeaheadDeadline = 0;
6580
+ _lastFocusedElement;
6581
+ _keyboardNavigation = false;
6582
+ _keyboardFocusedElement;
6583
+ _pointerPosition;
6584
+ _keyboardCapture = (event) => {
6585
+ if (event.isComposing ||
6586
+ event.target.closest('.mat-exp-menu-surface') !==
6587
+ this._surface().nativeElement)
6588
+ return;
6589
+ this._keyboardNavigation = true;
6590
+ this._markKeyboardFocus(this._document.activeElement);
6591
+ if (this._resetPending &&
6592
+ !this.owner()._content() &&
6593
+ (event.key === 'ArrowDown' || event.key === 'ArrowUp')) {
6594
+ this._resetPending = false;
6595
+ event.preventDefault();
6596
+ event.stopImmediatePropagation();
6597
+ this._menu()?.element.dispatchEvent(new KeyboardEvent('keydown', {
6598
+ key: event.key === 'ArrowDown' ? 'Home' : 'End',
6599
+ bubbles: true,
6600
+ }));
6601
+ }
6602
+ };
6603
+ _pointerMove = (event) => {
6604
+ const previous = this._pointerPosition;
6605
+ const moved = previous ? previous.x !== event.clientX || previous.y !== event.clientY : true;
6606
+ const resumeHover = moved && this._keyboardNavigation;
6607
+ if (moved) {
6608
+ this._keyboardNavigation = false;
6609
+ this._markKeyboardFocus(null);
6610
+ }
6611
+ this._pointerPosition = { x: event.clientX, y: event.clientY };
6612
+ if (resumeHover) {
6613
+ // mouseover precedes mousemove. Replay the hover after real movement proves
6614
+ // this is pointer input, not a row scrolling underneath a stationary mouse.
6615
+ event.target.dispatchEvent(new MouseEvent('mouseover', {
6616
+ bubbles: true,
6617
+ clientX: event.clientX,
6618
+ clientY: event.clientY,
6619
+ }));
6620
+ }
6621
+ };
6622
+ _hoverCapture = (event) => {
6623
+ const previous = this._pointerPosition;
6624
+ if (this._keyboardNavigation &&
6625
+ (!previous || (previous.x === event.clientX && previous.y === event.clientY))) {
6626
+ // Scrolling can put another row under a stationary pointer. Let Aria handle
6627
+ // deliberate hover, but don't let synthetic hover undo keyboard navigation.
6628
+ event.stopPropagation();
6629
+ return;
6630
+ }
6631
+ this._keyboardNavigation = false;
6632
+ this._markKeyboardFocus(null);
6633
+ this._pointerPosition = { x: event.clientX, y: event.clientY };
6634
+ };
6635
+ _pointerDown = (event) => {
6636
+ if (event.target.closest('.mat-exp-menu-surface') !==
6637
+ this._surface().nativeElement)
6638
+ return;
6639
+ this._keyboardNavigation = false;
6640
+ this._markKeyboardFocus(null);
6641
+ this._pointerPosition = { x: event.clientX, y: event.clientY };
6642
+ };
6643
+ // WebKit can retain pointer :focus-visible heuristics during arrow navigation.
6644
+ // Mark only this surface's actual focused row; never a merely active ancestor.
6645
+ _markKeyboardFocus(element) {
6646
+ const item = element instanceof HTMLElement ? element.closest('.mat-exp-menu-item') : null;
6647
+ const next = this._keyboardNavigation &&
6648
+ item?.closest('.mat-exp-menu-surface') === this._surface().nativeElement
6649
+ ? item
6650
+ : undefined;
6651
+ if (next === this._keyboardFocusedElement)
6652
+ return;
6653
+ this._keyboardFocusedElement?.removeAttribute('data-keyboard-focus');
6654
+ this._keyboardFocusedElement = next;
6655
+ next?.setAttribute('data-keyboard-focus', 'true');
6656
+ }
6657
+ constructor() {
6658
+ const host = this._host.nativeElement;
6659
+ host.addEventListener('keydown', this._keyboardCapture, true);
6660
+ host.addEventListener('mouseover', this._hoverCapture, true);
6661
+ host.addEventListener('mousemove', this._pointerMove, true);
6662
+ host.addEventListener('pointerdown', this._pointerDown, true);
6663
+ afterEveryRender(() => {
6664
+ if (this.owner()._content())
6665
+ this._syncAuthoredOrder();
6666
+ });
6667
+ afterRenderEffect(() => {
6668
+ const aria = this._menu();
6669
+ const open = this.root() || (!!aria?.parent() && !!aria.visible());
6670
+ const animate = this.owner().motion();
6671
+ untracked(() => {
6672
+ if (open === this._wasOpen) {
6673
+ if (!animate)
6674
+ this._motion?.settle();
6675
+ return;
6676
+ }
6677
+ this._wasOpen = open;
6678
+ if (open)
6679
+ this._enter();
6680
+ else
6681
+ this._exit(() => {
6682
+ this._shown.set(false);
6683
+ this._overlayRef?.detach();
6684
+ });
6685
+ });
6686
+ });
6687
+ afterRenderEffect(() => {
6688
+ this._groups();
6689
+ this.owner().maxHeight();
6690
+ this.owner().density();
6691
+ untracked(() => {
6692
+ if (!this._shown())
6693
+ return;
6694
+ this._measure();
6695
+ this._repairRemovedFocus();
6696
+ if (this._before) {
6697
+ this._motion?.relocate(this._before, this._itemElements(), this.owner().motion());
6698
+ this._before = undefined;
6699
+ }
6700
+ this._overlayRef?.updatePosition();
6701
+ });
6702
+ });
6703
+ inject(DestroyRef).onDestroy(() => {
6704
+ host.removeEventListener('keydown', this._keyboardCapture, true);
6705
+ host.removeEventListener('mouseover', this._hoverCapture, true);
6706
+ host.removeEventListener('mousemove', this._pointerMove, true);
6707
+ host.removeEventListener('pointerdown', this._pointerDown, true);
6708
+ this._keyboardFocusedElement?.removeAttribute('data-keyboard-focus');
6709
+ this._keys.destroy();
6710
+ this._contentInjector.destroy();
6711
+ this._motion?.destroy();
6712
+ this._observer?.disconnect();
6713
+ this._overlayRef?.dispose();
6714
+ });
6715
+ }
6716
+ _syncAuthoredOrder() {
6717
+ const sorted = [...this._authoredItems()].sort((a, b) => a._element.compareDocumentPosition(b._element) & 2 ? 1 : -1);
6718
+ const current = this._focusOptions.toArray();
6719
+ if (current.length === sorted.length &&
6720
+ current.every((option, index) => option.item === sorted[index]))
6721
+ return;
6722
+ const active = this._keys.activeItem?.item;
6723
+ this._focusOptions.reset(sorted.map((item) => ({
6724
+ item,
6725
+ focus: (origin) => item.focus(origin),
6726
+ getLabel: () => item.getLabel(),
6727
+ })));
6728
+ this._focusOptions.notifyOnChanges();
6729
+ if (active)
6730
+ this._keys.updateActiveItem(sorted.indexOf(active));
6731
+ sorted.forEach((item, index) => {
6732
+ item._element.setAttribute('data-first', String(index === 0));
6733
+ item._element.setAttribute('data-last', String(index === sorted.length - 1));
6734
+ });
6735
+ this._repairRemovedFocus();
6736
+ if (this._shown())
6737
+ this._measure();
6738
+ }
6739
+ _registerItem(item) {
6740
+ this._authoredItems.update((items) => [...items, item]);
6741
+ }
6742
+ _removeItem(item) {
6743
+ this._authoredItems.update((items) => items.filter((candidate) => candidate !== item));
6744
+ }
6745
+ _isSubmenuItem(element) {
6746
+ return this._submenus.has(element);
6747
+ }
6748
+ _registerSubmenu(element, trigger) {
6749
+ this._submenus.set(element, trigger);
6750
+ }
6751
+ _removeSubmenu(element) {
6752
+ this._submenus.delete(element);
6753
+ }
6754
+ _activateItem(item) {
6755
+ const index = this._focusOptions.toArray().findIndex((option) => option.item === item);
6756
+ this._keys.updateActiveItem(index);
6757
+ this.owner()._closeChild(item._element);
6758
+ }
6759
+ _hoverItem(item) {
6760
+ if (this._keyboardNavigation || item.disabled())
6761
+ return;
6762
+ item.focus('mouse');
6763
+ this._submenus.get(item._element)?._openFromHover();
6764
+ }
6765
+ _authoredKeydown(item, event) {
6766
+ if (event.isComposing)
6767
+ return;
6768
+ event.stopPropagation();
6769
+ const parent = this.owner()._parentMenu;
6770
+ const rtl = this._direction.value === 'rtl';
6771
+ if (event.key === 'Escape' || (parent && event.key === (rtl ? 'ArrowRight' : 'ArrowLeft'))) {
6772
+ event.preventDefault();
6773
+ this.owner().close('escape');
6774
+ return;
6775
+ }
6776
+ if (event.key === 'Tab') {
6777
+ this.owner()._closeTree('tab');
6778
+ return;
6779
+ }
6780
+ if (event.key === (rtl ? 'ArrowLeft' : 'ArrowRight')) {
6781
+ const trigger = this._submenus.get(item._element);
6782
+ if (trigger) {
6783
+ event.preventDefault();
6784
+ trigger.openMenu();
6785
+ }
6786
+ return;
6787
+ }
6788
+ if (event.key === 'Enter' || (event.key === ' ' && !this._keys.isTyping())) {
6789
+ if (item.disabled())
6790
+ event.preventDefault();
6791
+ else if (event.key === ' ' && item._element.tagName === 'A') {
6792
+ event.preventDefault();
6793
+ item._element.click();
6794
+ }
6795
+ return;
6796
+ }
6797
+ if (event.key === ' ' && this._keys.isTyping())
6798
+ event.preventDefault();
6799
+ this._keys.setFocusOrigin('keyboard').onKeydown(event);
6800
+ }
6801
+ _resetActiveItem() {
6802
+ this._resetPending = true;
6803
+ if (this.owner()._content())
6804
+ this._keys.updateActiveItem(-1);
6805
+ }
6806
+ _focusFirst(origin = 'program') {
6807
+ this._keyboardNavigation =
6808
+ origin === 'keyboard' ||
6809
+ (origin === 'program' && this._inputModality.mostRecentModality === 'keyboard');
6810
+ if (this.root() && this.owner().filterable())
6811
+ this._input()?.nativeElement.focus();
6812
+ else if (this.owner()._content()) {
6813
+ this._keys.setFocusOrigin(origin).setFirstItemActive();
6814
+ if (!this._keys.activeItem)
6815
+ this._menu()?.element.focus();
6816
+ }
6817
+ else {
6818
+ const element = this._itemElements()[0] ?? this._menu()?.element;
6819
+ if (element)
6820
+ this._focusMonitor.focusVia(element, origin, { preventScroll: true });
6821
+ }
6822
+ }
6823
+ _exit(done) {
6824
+ this._surface().nativeElement.inert = true;
6825
+ this._motion?.setOpen(false, this.owner().motion(), done);
6826
+ if (!this._motion)
6827
+ done();
6828
+ }
6829
+ _selected(id) {
6830
+ if (this.root())
6831
+ this.owner()._selectId(id);
6832
+ }
6833
+ _selectionClick(item, event) {
6834
+ if (item.disabled) {
6835
+ event.preventDefault();
6836
+ event.stopPropagation();
6837
+ return;
6838
+ }
6839
+ if (item.type === 'checkbox' || item.type === 'radio') {
6840
+ event.stopPropagation();
6841
+ this.owner()._select(item);
6842
+ }
6843
+ }
6844
+ _itemKeydown(item, event) {
6845
+ if (event.isComposing ||
6846
+ event.repeat ||
6847
+ event.altKey ||
6848
+ event.ctrlKey ||
6849
+ event.metaKey ||
6850
+ event.shiftKey)
6851
+ return;
6852
+ const now = Date.now();
6853
+ const typingSpace = event.key === ' ' && now < this._typeaheadDeadline;
6854
+ if (event.key.length === 1 && (event.key !== ' ' || typingSpace)) {
6855
+ // Aria owns the search buffer and navigation, but has no public isTyping
6856
+ // signal. Mirror only its public timeout so a space within a multiword
6857
+ // search reaches Aria instead of activating a persistent selection item.
6858
+ this._typeaheadDeadline = now + (this._menu()?.typeaheadDelay() ?? 500);
6859
+ return;
6860
+ }
6861
+ if (item.disabled && (event.key === 'Enter' || event.key === ' ')) {
6862
+ event.preventDefault();
6863
+ event.stopPropagation();
6864
+ }
6865
+ else if ((item.type === 'checkbox' || item.type === 'radio') &&
6866
+ (event.key === 'Enter' || event.key === ' ')) {
6867
+ // Leave native button activation intact; Aria retains every navigation key.
6868
+ event.stopPropagation();
6869
+ }
6870
+ }
6871
+ _keydown(event) {
6872
+ if (event.isComposing)
6873
+ return;
6874
+ const menu = event.target.closest('[ngMenu]');
6875
+ if (menu && menu !== this._menu()?.element)
6876
+ return;
6877
+ if (event.key === 'Escape' && this.root()) {
6878
+ // Dismiss the popup without allowing a search input's native Escape
6879
+ // behavior to clear its query while the animated surface remains mounted.
6880
+ event.preventDefault();
6881
+ event.stopPropagation();
6882
+ this.owner().close('escape');
6883
+ }
6884
+ if (event.key === 'Tab')
6885
+ this.owner()._closeTree('tab');
6886
+ }
6887
+ _filter(event) {
6888
+ this._before = snapshotMenuRects(this._itemElements());
6889
+ this.owner().query.set(event.target.value);
6890
+ }
6891
+ _filterKeydown(event) {
6892
+ if (event.isComposing)
6893
+ return;
6894
+ if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
6895
+ event.preventDefault();
6896
+ const items = this._itemElements();
6897
+ if (items.length)
6898
+ this._menu()?.element.dispatchEvent(new KeyboardEvent('keydown', {
6899
+ key: event.key === 'ArrowDown' ? 'Home' : 'End',
6900
+ bubbles: true,
6901
+ }));
6902
+ }
6903
+ }
6904
+ _focusIn(event) {
6905
+ const target = event.target;
6906
+ if (target.closest('.mat-exp-menu-surface') === this._surface().nativeElement) {
6907
+ this._lastFocusedElement = target;
6908
+ this._markKeyboardFocus(target);
6909
+ target.scrollIntoView?.({ block: 'nearest', inline: 'nearest' });
6910
+ this._focused.set(true);
6911
+ this._motion?.setActive(true, this.owner().motion());
6912
+ }
6913
+ else {
6914
+ this._focused.set(false);
6915
+ this._motion?.setActive(false, this.owner().motion());
6916
+ }
6917
+ }
6918
+ _focusOut(event) {
6919
+ this._markKeyboardFocus(null);
6920
+ const next = event.relatedTarget;
6921
+ if (next instanceof HTMLElement &&
6922
+ next.closest('.mat-exp-menu-surface') !== this._surface().nativeElement) {
6923
+ this._focused.set(false);
6924
+ this._motion?.setActive(false, this.owner().motion());
6925
+ }
6926
+ }
6927
+ _pointerOut(event) {
6928
+ const next = event.relatedTarget;
6929
+ const surface = next instanceof HTMLElement ? next.closest('.mat-exp-menu-surface') : null;
6930
+ if (surface && surface !== this._surface().nativeElement) {
6931
+ this._focused.set(false);
6932
+ this._motion?.setActive(false, this.owner().motion());
6933
+ }
6934
+ }
6935
+ _pointer(event) {
6936
+ const own = event.target.closest('.mat-exp-menu-surface') ===
6937
+ this._surface().nativeElement;
6938
+ this._focused.set(own);
6939
+ this._motion?.setActive(own, this.owner().motion());
6940
+ }
6941
+ _enter() {
6942
+ const surface = this._surface().nativeElement;
6943
+ const win = this._document.defaultView;
6944
+ if (!win)
6945
+ return;
6946
+ const focusSubmenu = !this.root() && this._document.activeElement === this.parentOrigin();
6947
+ if (focusSubmenu)
6948
+ this._keyboardNavigation =
6949
+ this.parentOrigin()?.getAttribute('data-keyboard-focus') === 'true';
6950
+ this._shown.set(true);
6951
+ this._host.nativeElement.style.display = 'block';
6952
+ surface.inert = false;
6953
+ if (!this.root()) {
6954
+ const origin = this.parentOrigin();
6955
+ const parent = this.parentMenu();
6956
+ if (!origin || !parent)
6957
+ return;
6958
+ if (!this._overlayRef) {
6959
+ const offset = this._direction.value === 'rtl' ? -4 : 4;
6960
+ const strategy = this._overlay
6961
+ .position()
6962
+ .flexibleConnectedTo(origin)
6963
+ .withPositions([
6964
+ { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: offset },
6965
+ {
6966
+ originX: 'start',
6967
+ originY: 'top',
6968
+ overlayX: 'end',
6969
+ overlayY: 'top',
6970
+ offsetX: -offset,
6971
+ },
6972
+ {
6973
+ originX: 'end',
6974
+ originY: 'bottom',
6975
+ overlayX: 'start',
6976
+ overlayY: 'bottom',
6977
+ offsetX: offset,
6978
+ },
6979
+ {
6980
+ originX: 'start',
6981
+ originY: 'bottom',
6982
+ overlayX: 'end',
6983
+ overlayY: 'bottom',
6984
+ offsetX: -offset,
6985
+ },
6986
+ ])
6987
+ .withViewportMargin(8)
6988
+ .withFlexibleDimensions(false)
6989
+ .withPush(false)
6990
+ .withTransformOriginOn('.mat-exp-menu-surface')
6991
+ .withPopoverLocation({ type: 'parent', element: parent.element });
6992
+ this._overlayRef = this._overlay.create({
6993
+ positionStrategy: strategy,
6994
+ usePopover: true,
6995
+ direction: this._direction.value,
6996
+ scrollStrategy: this._overlay.scrollStrategies.reposition(),
6997
+ });
6998
+ }
6999
+ if (!this._overlayRef.hasAttached())
7000
+ this._overlayRef.attach(new DomPortal(this._host));
7001
+ }
7002
+ this._motion ??= createMenuMotion(surface, win.matchMedia('(prefers-reduced-motion: reduce)'));
7003
+ this._motion.setOpen(true, this.owner().motion());
7004
+ if (!this._observer && typeof ResizeObserver !== 'undefined') {
7005
+ this._observer = new ResizeObserver(() => this._measure());
7006
+ this._observer.observe(this._list().nativeElement);
7007
+ }
7008
+ this._measure();
7009
+ if (focusSubmenu)
7010
+ this._menu()
7011
+ ?.element.querySelector('[data-active="true"]')
7012
+ ?.focus({ preventScroll: true });
7013
+ }
7014
+ _measure() {
7015
+ const list = this._list().nativeElement;
7016
+ // scrollHeight includes transient FLIP translations. Measure flow boxes so
7017
+ // a ResizeObserver callback during reflow cannot latch a false scrollbar.
7018
+ const height = Array.from(list.children).reduce((total, child) => child instanceof HTMLElement &&
7019
+ child.matches('.mat-exp-menu-group, .mat-exp-menu-separator, .mat-exp-menu-empty')
7020
+ ? total + child.offsetHeight
7021
+ : total, 0);
7022
+ this._scrollable.set(height > list.clientHeight + 1);
7023
+ if (this.root())
7024
+ this.owner()._updatePosition();
7025
+ }
7026
+ _repairRemovedFocus() {
7027
+ const previous = this._lastFocusedElement;
7028
+ if (!previous ||
7029
+ previous.isConnected ||
7030
+ !this.owner().isOpen() ||
7031
+ this._surface().nativeElement.inert)
7032
+ return;
7033
+ this._lastFocusedElement = undefined;
7034
+ const current = this._document.activeElement;
7035
+ // Removing a focused node leaves the document body active. A still-connected
7036
+ // input or outside control owns its focus; data changes must not take it back.
7037
+ if (current && current !== this._document.body && current.isConnected)
7038
+ return;
7039
+ const menu = this._menu()?.element;
7040
+ if (this._itemElements().length) {
7041
+ // Use Aria's public keyboard surface so its active item and DOM focus agree.
7042
+ if (this.owner()._content())
7043
+ this._keys.setFirstItemActive();
7044
+ else
7045
+ menu?.dispatchEvent(new KeyboardEvent('keydown', { key: 'Home', bubbles: true }));
7046
+ }
7047
+ else {
7048
+ (this._input()?.nativeElement ?? menu)?.focus({ preventScroll: true });
7049
+ }
7050
+ }
7051
+ _itemElements() {
7052
+ return Array.from(this._list().nativeElement.querySelectorAll('.mat-exp-menu-item')).filter((element) => element.closest('[ngMenu]') === this._menu()?.element);
7053
+ }
7054
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuSurface, deps: [], target: i0.ɵɵFactoryTarget.Component });
7055
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpMenuSurface, isStandalone: true, selector: "mat-exp-menu-surface", inputs: { owner: { classPropertyName: "owner", publicName: "owner", isSignal: true, isRequired: true, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null }, parentOrigin: { classPropertyName: "parentOrigin", publicName: "parentOrigin", isSignal: true, isRequired: false, transformFunction: null }, parentMenu: { classPropertyName: "parentMenu", publicName: "parentMenu", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "_shown() ? \"block\" : \"none\"" } }, viewQueries: [{ propertyName: "_menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }, { propertyName: "_surface", first: true, predicate: ["surface"], descendants: true, isSignal: true }, { propertyName: "_list", first: true, predicate: ["list"], descendants: true, isSignal: true }, { propertyName: "_input", first: true, predicate: ["filter"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- The surface delegates keyboard and pointer events from its focusable descendants. -->\n<!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n<div\n #surface\n class=\"mat-exp-menu-surface\"\n [class]=\"owner().panelClass()\"\n [attr.data-color]=\"owner().color()\"\n [attr.data-density]=\"owner().density()\"\n [attr.data-separation]=\"owner().separation()\"\n [attr.data-scrollable]=\"_scrollable()\"\n [attr.data-focused]=\"_focused()\"\n [attr.role]=\"root() && owner().filterable() ? 'dialog' : null\"\n [attr.id]=\"root() && owner().filterable() ? owner()._id : null\"\n [attr.aria-label]=\"\n root() && owner().filterable() ? (owner().ariaLabel() ?? owner().label()) : null\n \"\n (keydown)=\"_keydown($event)\"\n (focusin)=\"_focusIn($event)\"\n (focusout)=\"_focusOut($event)\"\n (blur)=\"_focusOut($event)\"\n (focus)=\"_focusIn($event)\"\n (mouseover)=\"_pointer($event)\"\n (mouseout)=\"_pointerOut($event)\"\n>\n @if (root() && owner().filterable()) {\n <div class=\"mat-exp-menu-filter\">\n <label [for]=\"owner()._id + '-filter'\">{{ owner().filterLabel() }}</label>\n <input\n #filter\n type=\"search\"\n autocomplete=\"off\"\n [id]=\"owner()._id + '-filter'\"\n [value]=\"owner().query()\"\n [attr.aria-controls]=\"_menuId()\"\n (input)=\"_filter($event)\"\n (keydown)=\"_filterKeydown($event)\"\n />\n </div>\n }\n <div\n ngMenu\n tabindex=\"-1\"\n #menu=\"ngMenu\"\n #list\n class=\"mat-exp-menu-list\"\n [attr.role]=\"_contentCount() ? 'menu' : 'group'\"\n [id]=\"_menuId()\"\n [attr.aria-label]=\"owner().ariaLabel() ?? owner().label()\"\n [attr.aria-labelledby]=\"owner().ariaLabelledby() || null\"\n [attr.aria-describedby]=\"owner().ariaDescribedby() || null\"\n [softDisabled]=\"true\"\n [style.max-height.px]=\"owner().maxHeight()\"\n (itemSelected)=\"_selected($event)\"\n (keydown)=\"_keydown($event)\"\n >\n @if (root() && owner()._content(); as content) {\n <div class=\"mat-exp-menu-group\" role=\"group\">\n <ng-container\n [ngTemplateOutlet]=\"content.template\"\n [ngTemplateOutletContext]=\"owner()._triggerData()\"\n [ngTemplateOutletInjector]=\"_contentInjector\"\n />\n </div>\n } @else {\n @for (group of _groups(); track group.id; let gi = $index) {\n @if (gi > 0) {\n <div class=\"mat-exp-menu-separator\" role=\"separator\"></div>\n }\n <div class=\"mat-exp-menu-group\" role=\"group\" [attr.aria-label]=\"group.label || null\">\n @if (group.label) {\n <div class=\"mat-exp-menu-group-label\" aria-hidden=\"true\">{{ group.label }}</div>\n }\n @for (item of group.items; track item.id; let first = $first; let last = $last) {\n @if (item.children?.length) {\n <button\n type=\"button\"\n ngMenuItem\n #origin\n class=\"mat-exp-menu-item\"\n matRipple\n [value]=\"item.id\"\n [searchTerm]=\"item.label\"\n [attr.aria-label]=\"owner()._itemTemplate() ? item.label : null\"\n [attr.aria-description]=\"\n [item.supportingText, item.trailingText, item.badge].join(' ').trim() || null\n \"\n [disabled]=\"!!item.disabled\"\n [matRippleDisabled]=\"!!item.disabled || !owner().motion()\"\n [submenu]=\"child._menu()\"\n [attr.data-first]=\"first\"\n [attr.data-last]=\"last\"\n (click)=\"_selectionClick(item, $event)\"\n (keydown)=\"_itemKeydown(item, $event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n <mat-icon\n class=\"mat-exp-menu-trailing-icon mat-exp-menu-submenu-arrow\"\n aria-hidden=\"true\"\n >chevron_right</mat-icon\n >\n </button>\n <mat-exp-menu-surface\n #child\n [owner]=\"owner()\"\n [items]=\"item.children!\"\n [parentOrigin]=\"origin\"\n [parentMenu]=\"menu\"\n />\n } @else {\n <button\n type=\"button\"\n ngMenuItem\n class=\"mat-exp-menu-item\"\n matRipple\n [value]=\"item.id\"\n [searchTerm]=\"item.label\"\n [attr.aria-label]=\"owner()._itemTemplate() ? item.label : null\"\n [attr.aria-description]=\"\n [item.supportingText, item.trailingText, item.badge].join(' ').trim() || null\n \"\n [disabled]=\"!!item.disabled\"\n [role]=\"\n item.type === 'checkbox'\n ? 'menuitemcheckbox'\n : item.type === 'radio'\n ? 'menuitemradio'\n : 'menuitem'\n \"\n [attr.aria-checked]=\"\n item.type === 'checkbox' || item.type === 'radio'\n ? owner().value().includes(item.id)\n : null\n \"\n [attr.data-first]=\"first\"\n [attr.data-last]=\"last\"\n [matRippleDisabled]=\"!!item.disabled || !owner().motion()\"\n (click)=\"_selectionClick(item, $event)\"\n (keydown)=\"_itemKeydown(item, $event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n }\n }\n </div>\n }\n }\n @if (!_contentCount()) {\n <div class=\"mat-exp-menu-empty\" role=\"presentation\">{{ owner().emptyLabel() }}</div>\n }\n </div>\n @if (root() && owner().filterable()) {\n <div class=\"mat-exp-menu-status\" role=\"status\" aria-live=\"polite\">\n {{ _count() }} {{ owner().filterLabel() }}\n </div>\n }\n</div>\n<ng-template #content let-item>\n @if (owner()._itemTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item, selected: owner().value().includes(item.id) }\"\n />\n } @else {\n @if (item.icon) {\n <mat-icon class=\"mat-exp-menu-leading\" aria-hidden=\"true\">{{ item.icon }}</mat-icon>\n }\n <span class=\"mat-exp-menu-text\">\n <span class=\"mat-exp-menu-label\">{{ item.label }}</span>\n @if (item.supportingText) {\n <span class=\"mat-exp-menu-supporting\" aria-hidden=\"true\">{{ item.supportingText }}</span>\n }\n </span>\n @if (item.badge) {\n <span class=\"mat-exp-menu-badge\" aria-hidden=\"true\">{{ item.badge }}</span>\n }\n @if (item.trailingText) {\n <span class=\"mat-exp-menu-trailing-text\" aria-hidden=\"true\">{{ item.trailingText }}</span>\n }\n @if (item.trailingIcon) {\n <mat-icon class=\"mat-exp-menu-trailing-icon\" aria-hidden=\"true\">{{\n item.trailingIcon\n }}</mat-icon>\n }\n @if (item.type === 'checkbox' || item.type === 'radio') {\n <span class=\"mat-exp-menu-check\" aria-hidden=\"true\">{{\n owner().value().includes(item.id) ? '\u2713' : ''\n }}</span>\n }\n }\n</ng-template>\n", styles: [".mat-exp-menu-surface{--_menu-surface: var(--mat-exp-menu-container-color, var(--mat-sys-surface-container-low));--_menu-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-surface));--_menu-support: var(--mat-exp-menu-supporting-color, var(--mat-sys-on-surface-variant));--_menu-icon: var(--mat-exp-menu-icon-color, var(--mat-sys-on-surface-variant));--_menu-interactive-icon: var(--_menu-icon);--_menu-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary-container));--_menu-on-selected: var( --mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary-container) );--_menu-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-surface));--_menu-disabled: var(--mat-exp-menu-disabled-content-color, var(--mat-sys-on-surface));--_menu-target-height: 3rem;--_menu-block-padding: .5rem;display:flex;flex-direction:column;box-sizing:border-box;inline-size:max-content;min-inline-size:min(var(--mat-exp-menu-min-width, 7rem),100vw - 1rem);max-inline-size:min(var(--mat-exp-menu-max-width, 24rem),100vw - 1rem);max-block-size:calc(100dvh - 1rem);border-radius:var(--mat-exp-menu-container-shape, 1rem);background:var(--_menu-surface);color:var(--_menu-label);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2));font-family:var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));font-size:var(--mat-exp-menu-label-size, .875rem);font-weight:var(--mat-exp-menu-label-weight, 500);line-height:var(--mat-exp-menu-label-line-height, 1.25rem);letter-spacing:var(--mat-exp-menu-label-tracking, .00625rem);text-align:start;isolation:isolate}.mat-exp-menu-surface[data-focused=false]{border-radius:var(--mat-exp-menu-inactive-shape, .5rem)}.mat-exp-menu-surface[data-color=vibrant]{--_menu-surface: var(--mat-exp-menu-container-color, var(--mat-sys-tertiary-container));--_menu-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-tertiary-container));--_menu-support: var(--mat-exp-menu-supporting-color, var(--mat-sys-on-tertiary-container));--_menu-icon: var(--mat-exp-menu-icon-color, var(--mat-sys-on-tertiary-container));--_menu-interactive-icon: var(--mat-exp-menu-interactive-icon-color, var(--mat-sys-tertiary));--_menu-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary));--_menu-on-selected: var(--mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary));--_menu-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-tertiary-container));--_menu-disabled: var( --mat-exp-menu-disabled-content-color, var(--mat-sys-on-tertiary-container) )}.mat-exp-menu-surface[data-density=\"-1\"]{--_menu-target-height: 2.75rem;--_menu-block-padding: .375rem}.mat-exp-menu-surface[data-density=\"-2\"]{--_menu-target-height: 2.5rem;--_menu-block-padding: .25rem}.mat-exp-menu-surface[data-density=\"-3\"]{--_menu-target-height: 2.25rem;--_menu-block-padding: .125rem}.mat-exp-menu-list{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflow-y:hidden;overflow-x:hidden;overscroll-behavior:contain;border-radius:inherit;padding:0;scrollbar-color:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline)) var(--_menu-surface)}.mat-exp-menu-surface:not([data-separation=gap]),.mat-exp-menu-surface[data-scrollable=true]{overflow:hidden}.mat-exp-menu-surface[data-scrollable=true]>.mat-exp-menu-list{overflow-y:scroll;scrollbar-gutter:stable}@supports selector(::-webkit-scrollbar){.mat-exp-menu-list{scrollbar-color:auto;scrollbar-width:auto}}.mat-exp-menu-list::-webkit-scrollbar-button{display:none}.mat-exp-menu-list::-webkit-scrollbar{width:var(--mat-exp-menu-scrollbar-width, .75rem)}.mat-exp-menu-list::-webkit-scrollbar-track{margin-block:.25rem;background:var(--_menu-surface)}.mat-exp-menu-list::-webkit-scrollbar-thumb{border:3px solid var(--_menu-surface);border-radius:.75rem;background:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline))}.mat-exp-menu-group{display:flow-root;padding:var(--mat-exp-menu-group-padding, .125rem);min-inline-size:0;border-radius:var(--mat-exp-menu-group-shape, .5rem);background:var(--_menu-surface)}.mat-exp-menu-separator{box-sizing:border-box;block-size:var(--mat-exp-menu-gap, .125rem);flex:0 0 auto;border-block-start:1px solid var(--mat-exp-menu-divider-color, var(--mat-sys-outline-variant))}.mat-exp-menu-group-label{display:flex;align-items:center;box-sizing:border-box;min-block-size:var(--mat-exp-menu-group-label-height, 2rem);padding-inline:var(--mat-exp-menu-item-inline-padding, 1rem);padding-block:.25rem;color:var(--_menu-support);overflow-wrap:anywhere}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true]){background:transparent;box-shadow:none}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-list{display:flex;flex-direction:column;gap:0;padding:0;overflow:visible}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-list>.mat-exp-menu-group{flex-shrink:0;padding:var(--mat-exp-menu-group-padding, .125rem);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2))}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-list>.mat-exp-menu-separator{block-size:var(--mat-exp-menu-gap, .125rem);border:0}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-filter{margin-block-end:var(--mat-exp-menu-gap, .125rem);border-radius:var(--mat-exp-menu-group-shape, .5rem)}.mat-exp-menu-item{--_menu-item-background: transparent;--_menu-item-foreground: var(--_menu-label);--_menu-item-support: var(--_menu-support);--_menu-item-icon: var(--_menu-icon);--_menu-item-layer: var(--_menu-state);--_menu-item-opacity: 1;--_menu-container-opacity: 1;--_menu-state-opacity: 0;--mat-ripple-color: color-mix(in srgb, var(--_menu-item-layer) 10%, transparent);position:relative;display:flex;align-items:center;box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:var(--mat-exp-menu-item-target-height, var(--_menu-target-height));gap:var(--mat-exp-menu-item-gap, .75rem);margin:0;padding-block:var(--mat-exp-menu-item-block-padding, var(--_menu-block-padding));padding-inline:var(--mat-exp-menu-item-inline-padding, 1rem);border:0;border-radius:var(--mat-exp-menu-item-shape, .25rem);outline:none;background:transparent;color:var(--_menu-item-foreground);font:inherit;letter-spacing:inherit;text-align:start;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;isolation:isolate}.mat-exp-menu-item:before,.mat-exp-menu-item:after{position:absolute;inset:.125rem 0;z-index:-1;border-radius:inherit;pointer-events:none;content:\"\"}.mat-exp-menu-item:before{background:var(--_menu-item-background);opacity:var(--_menu-container-opacity)}.mat-exp-menu-item:after{background:var(--_menu-item-layer);opacity:var(--_menu-state-opacity)}.mat-exp-menu-item[data-first=true]{border-start-start-radius:var(--mat-exp-menu-item-outer-shape, .75rem);border-start-end-radius:var(--mat-exp-menu-item-outer-shape, .75rem)}.mat-exp-menu-item[data-last=true]{border-end-start-radius:var(--mat-exp-menu-item-outer-shape, .75rem);border-end-end-radius:var(--mat-exp-menu-item-outer-shape, .75rem)}.mat-exp-menu-item:where(:hover,[aria-expanded=true]):not([aria-disabled=true]){--_menu-state-opacity: .08;--_menu-item-icon: var(--_menu-interactive-icon)}.mat-exp-menu-item:where(:focus-visible,[data-keyboard-focus=true],:active):not([aria-disabled=true]){--_menu-state-opacity: .1;--_menu-item-icon: var(--_menu-interactive-icon)}.mat-exp-menu-item[aria-checked=true]{--_menu-item-background: var(--_menu-selected);--_menu-item-foreground: var(--_menu-on-selected);--_menu-item-support: var(--_menu-on-selected);--_menu-item-icon: var(--_menu-on-selected);--_menu-item-layer: var(--_menu-on-selected);border-radius:var(--mat-exp-menu-selected-shape, .75rem)}.mat-exp-menu-item[aria-disabled=true]{--_menu-item-foreground: var(--_menu-disabled);--_menu-item-support: var(--_menu-disabled);--_menu-item-icon: var(--_menu-disabled);--_menu-item-opacity: .38;cursor:default}.mat-exp-menu-item[aria-disabled=true][aria-checked=true]{--_menu-item-foreground: var(--_menu-on-selected);--_menu-item-support: var(--_menu-on-selected);--_menu-item-icon: var(--_menu-on-selected);--_menu-container-opacity: .38}.mat-exp-menu-item:where(:focus-visible,[data-keyboard-focus=true]){outline:var(--mat-exp-menu-focus-width, 3px) solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:var(--mat-exp-menu-focus-offset, -3px)}.mat-exp-menu-item>*{opacity:var(--_menu-item-opacity)}.mat-exp-menu-surface[data-color=vibrant] .mat-exp-menu-item[aria-disabled=true][aria-checked=true]{--_menu-container-opacity: 1}.mat-exp-menu-leading,.mat-exp-menu-trailing-icon,.mat-exp-menu-check{flex:none;inline-size:var(--mat-exp-menu-icon-size, 1.25rem);block-size:var(--mat-exp-menu-icon-size, 1.25rem);font-size:var(--mat-exp-menu-icon-size, 1.25rem);line-height:1;color:var(--_menu-item-icon)}.mat-exp-menu-submenu-arrow:dir(rtl){transform:scaleX(-1)}.mat-exp-menu-text{display:flex;flex:1;flex-direction:column;min-inline-size:0;overflow-wrap:anywhere}.mat-exp-menu-label{color:var(--_menu-item-foreground)}.mat-exp-menu-supporting{color:var(--_menu-item-support);font-family:var(--mat-exp-menu-supporting-font, var(--mat-sys-body-small-font, sans-serif));font-size:var(--mat-exp-menu-supporting-size, .75rem);font-weight:var(--mat-exp-menu-supporting-weight, 400);line-height:var(--mat-exp-menu-supporting-line-height, 1rem);letter-spacing:var(--mat-exp-menu-supporting-tracking, .025rem)}.mat-exp-menu-trailing-text{flex:0 1 auto;min-inline-size:0;color:var(--_menu-item-support);overflow-wrap:anywhere;text-align:end}.mat-exp-menu-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem;padding-inline:.25rem;border-radius:var(--mat-exp-menu-badge-shape, 1rem);background:var(--mat-exp-menu-badge-color, var(--mat-sys-error));color:var(--mat-exp-menu-badge-text-color, var(--mat-sys-on-error));font:var(--mat-sys-label-small)}.mat-exp-menu-filter{display:flex;flex:none;flex-direction:column;box-sizing:border-box;min-inline-size:0;padding:.5rem 1rem;border-radius:inherit;background:var(--_menu-surface);color:var(--_menu-support)}.mat-exp-menu-filter input{box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:3rem;padding:.5rem;border:1px solid var(--mat-exp-menu-filter-outline-color, var(--mat-sys-outline));border-radius:.25rem;background:transparent;color:var(--_menu-label);caret-color:var(--mat-sys-primary);font:inherit}.mat-exp-menu-filter input:focus-visible{outline:3px solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:-3px}.mat-exp-menu-filter input::placeholder{color:var(--_menu-support);opacity:1}.mat-exp-menu-empty{padding:1rem;color:var(--_menu-support);overflow-wrap:anywhere}.mat-exp-menu-status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(forced-colors:active){.mat-exp-menu-list{scrollbar-color:auto}.mat-exp-menu-list::-webkit-scrollbar-track{background:Canvas}.mat-exp-menu-list::-webkit-scrollbar-thumb{border-color:Canvas;background:CanvasText}.mat-exp-menu-surface,.mat-exp-menu-group,.mat-exp-menu-filter{border:1px solid CanvasText}.mat-exp-menu-item[aria-checked=true]{--_menu-item-background: Highlight;--_menu-item-foreground: HighlightText;--_menu-item-support: HighlightText;--_menu-item-icon: HighlightText;forced-color-adjust:none}.mat-exp-menu-item[aria-disabled=true]{--_menu-item-foreground: GrayText;--_menu-item-support: GrayText;--_menu-item-icon: GrayText;--_menu-item-opacity: 1;--_menu-container-opacity: 1}.mat-exp-menu-item:where(:focus-visible,[data-keyboard-focus=true]),.mat-exp-menu-filter input:focus-visible{outline-color:Highlight}.mat-exp-menu-item[aria-checked=true]:where(:focus-visible,[data-keyboard-focus=true]){outline-color:CanvasText}.mat-exp-menu-separator{border-block-start-color:CanvasText}}@media(prefers-reduced-motion:reduce){.mat-exp-menu-item .mat-ripple-element{transition:none!important}}.mat-exp-menu-authored-item>mat-icon{flex:none;width:1.25rem;height:1.25rem;font-size:1.25rem;color:var(--_menu-item-icon)}.mat-exp-menu-authored-item[aria-disabled=true]{color:color-mix(in srgb,var(--_menu-item-foreground) 38%,transparent)}.mat-exp-menu-authored-item[aria-disabled=true]>*{opacity:1}.mat-exp-menu-authored-item[aria-disabled=true]>mat-icon{color:color-mix(in srgb,var(--_menu-item-icon) 38%,transparent)}.mat-exp-menu-authored-item[aria-disabled=true]>:is(.mat-exp-menu-text,.mat-exp-menu-label,.mat-exp-menu-supporting,.mat-exp-menu-trailing-text,.mat-exp-menu-leading,.mat-exp-menu-trailing-icon,.mat-exp-menu-check,.mat-exp-menu-badge){opacity:var(--_menu-item-opacity)}.mat-exp-menu-authored-item[aria-disabled=true]>.mat-exp-menu-text{color:var(--_menu-item-foreground)}.mat-exp-menu-authored-item[aria-disabled=true]>mat-icon:is(.mat-exp-menu-leading,.mat-exp-menu-trailing-icon,.mat-exp-menu-check){color:var(--_menu-item-icon)}\n"], dependencies: [{ kind: "component", type: MatExpMenuSurface, selector: "mat-exp-menu-surface", inputs: ["owner", "items", "root", "parentOrigin", "parentMenu"] }, { kind: "directive", type: Menu, selector: "[ngMenu]", inputs: ["id", "wrap", "typeaheadDelay", "disabled", "softDisabled", "expansionDelay"], outputs: ["itemSelected"], exportAs: ["ngMenu"] }, { kind: "directive", type: MenuItem, selector: "[ngMenuItem]", inputs: ["id", "value", "disabled", "searchTerm", "role", "submenu"], outputs: ["searchTermChange"], exportAs: ["ngMenuItem"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7056
+ }
7057
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuSurface, decorators: [{
7058
+ type: Component,
7059
+ args: [{ selector: 'mat-exp-menu-surface', imports: [Menu, MenuItem, NgTemplateOutlet, MatIcon, MatRipple], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { '[style.display]': '_shown() ? "block" : "none"' }, template: "<!-- The surface delegates keyboard and pointer events from its focusable descendants. -->\n<!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n<div\n #surface\n class=\"mat-exp-menu-surface\"\n [class]=\"owner().panelClass()\"\n [attr.data-color]=\"owner().color()\"\n [attr.data-density]=\"owner().density()\"\n [attr.data-separation]=\"owner().separation()\"\n [attr.data-scrollable]=\"_scrollable()\"\n [attr.data-focused]=\"_focused()\"\n [attr.role]=\"root() && owner().filterable() ? 'dialog' : null\"\n [attr.id]=\"root() && owner().filterable() ? owner()._id : null\"\n [attr.aria-label]=\"\n root() && owner().filterable() ? (owner().ariaLabel() ?? owner().label()) : null\n \"\n (keydown)=\"_keydown($event)\"\n (focusin)=\"_focusIn($event)\"\n (focusout)=\"_focusOut($event)\"\n (blur)=\"_focusOut($event)\"\n (focus)=\"_focusIn($event)\"\n (mouseover)=\"_pointer($event)\"\n (mouseout)=\"_pointerOut($event)\"\n>\n @if (root() && owner().filterable()) {\n <div class=\"mat-exp-menu-filter\">\n <label [for]=\"owner()._id + '-filter'\">{{ owner().filterLabel() }}</label>\n <input\n #filter\n type=\"search\"\n autocomplete=\"off\"\n [id]=\"owner()._id + '-filter'\"\n [value]=\"owner().query()\"\n [attr.aria-controls]=\"_menuId()\"\n (input)=\"_filter($event)\"\n (keydown)=\"_filterKeydown($event)\"\n />\n </div>\n }\n <div\n ngMenu\n tabindex=\"-1\"\n #menu=\"ngMenu\"\n #list\n class=\"mat-exp-menu-list\"\n [attr.role]=\"_contentCount() ? 'menu' : 'group'\"\n [id]=\"_menuId()\"\n [attr.aria-label]=\"owner().ariaLabel() ?? owner().label()\"\n [attr.aria-labelledby]=\"owner().ariaLabelledby() || null\"\n [attr.aria-describedby]=\"owner().ariaDescribedby() || null\"\n [softDisabled]=\"true\"\n [style.max-height.px]=\"owner().maxHeight()\"\n (itemSelected)=\"_selected($event)\"\n (keydown)=\"_keydown($event)\"\n >\n @if (root() && owner()._content(); as content) {\n <div class=\"mat-exp-menu-group\" role=\"group\">\n <ng-container\n [ngTemplateOutlet]=\"content.template\"\n [ngTemplateOutletContext]=\"owner()._triggerData()\"\n [ngTemplateOutletInjector]=\"_contentInjector\"\n />\n </div>\n } @else {\n @for (group of _groups(); track group.id; let gi = $index) {\n @if (gi > 0) {\n <div class=\"mat-exp-menu-separator\" role=\"separator\"></div>\n }\n <div class=\"mat-exp-menu-group\" role=\"group\" [attr.aria-label]=\"group.label || null\">\n @if (group.label) {\n <div class=\"mat-exp-menu-group-label\" aria-hidden=\"true\">{{ group.label }}</div>\n }\n @for (item of group.items; track item.id; let first = $first; let last = $last) {\n @if (item.children?.length) {\n <button\n type=\"button\"\n ngMenuItem\n #origin\n class=\"mat-exp-menu-item\"\n matRipple\n [value]=\"item.id\"\n [searchTerm]=\"item.label\"\n [attr.aria-label]=\"owner()._itemTemplate() ? item.label : null\"\n [attr.aria-description]=\"\n [item.supportingText, item.trailingText, item.badge].join(' ').trim() || null\n \"\n [disabled]=\"!!item.disabled\"\n [matRippleDisabled]=\"!!item.disabled || !owner().motion()\"\n [submenu]=\"child._menu()\"\n [attr.data-first]=\"first\"\n [attr.data-last]=\"last\"\n (click)=\"_selectionClick(item, $event)\"\n (keydown)=\"_itemKeydown(item, $event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n <mat-icon\n class=\"mat-exp-menu-trailing-icon mat-exp-menu-submenu-arrow\"\n aria-hidden=\"true\"\n >chevron_right</mat-icon\n >\n </button>\n <mat-exp-menu-surface\n #child\n [owner]=\"owner()\"\n [items]=\"item.children!\"\n [parentOrigin]=\"origin\"\n [parentMenu]=\"menu\"\n />\n } @else {\n <button\n type=\"button\"\n ngMenuItem\n class=\"mat-exp-menu-item\"\n matRipple\n [value]=\"item.id\"\n [searchTerm]=\"item.label\"\n [attr.aria-label]=\"owner()._itemTemplate() ? item.label : null\"\n [attr.aria-description]=\"\n [item.supportingText, item.trailingText, item.badge].join(' ').trim() || null\n \"\n [disabled]=\"!!item.disabled\"\n [role]=\"\n item.type === 'checkbox'\n ? 'menuitemcheckbox'\n : item.type === 'radio'\n ? 'menuitemradio'\n : 'menuitem'\n \"\n [attr.aria-checked]=\"\n item.type === 'checkbox' || item.type === 'radio'\n ? owner().value().includes(item.id)\n : null\n \"\n [attr.data-first]=\"first\"\n [attr.data-last]=\"last\"\n [matRippleDisabled]=\"!!item.disabled || !owner().motion()\"\n (click)=\"_selectionClick(item, $event)\"\n (keydown)=\"_itemKeydown(item, $event)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </button>\n }\n }\n </div>\n }\n }\n @if (!_contentCount()) {\n <div class=\"mat-exp-menu-empty\" role=\"presentation\">{{ owner().emptyLabel() }}</div>\n }\n </div>\n @if (root() && owner().filterable()) {\n <div class=\"mat-exp-menu-status\" role=\"status\" aria-live=\"polite\">\n {{ _count() }} {{ owner().filterLabel() }}\n </div>\n }\n</div>\n<ng-template #content let-item>\n @if (owner()._itemTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"{ $implicit: item, selected: owner().value().includes(item.id) }\"\n />\n } @else {\n @if (item.icon) {\n <mat-icon class=\"mat-exp-menu-leading\" aria-hidden=\"true\">{{ item.icon }}</mat-icon>\n }\n <span class=\"mat-exp-menu-text\">\n <span class=\"mat-exp-menu-label\">{{ item.label }}</span>\n @if (item.supportingText) {\n <span class=\"mat-exp-menu-supporting\" aria-hidden=\"true\">{{ item.supportingText }}</span>\n }\n </span>\n @if (item.badge) {\n <span class=\"mat-exp-menu-badge\" aria-hidden=\"true\">{{ item.badge }}</span>\n }\n @if (item.trailingText) {\n <span class=\"mat-exp-menu-trailing-text\" aria-hidden=\"true\">{{ item.trailingText }}</span>\n }\n @if (item.trailingIcon) {\n <mat-icon class=\"mat-exp-menu-trailing-icon\" aria-hidden=\"true\">{{\n item.trailingIcon\n }}</mat-icon>\n }\n @if (item.type === 'checkbox' || item.type === 'radio') {\n <span class=\"mat-exp-menu-check\" aria-hidden=\"true\">{{\n owner().value().includes(item.id) ? '\u2713' : ''\n }}</span>\n }\n }\n</ng-template>\n", styles: [".mat-exp-menu-surface{--_menu-surface: var(--mat-exp-menu-container-color, var(--mat-sys-surface-container-low));--_menu-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-surface));--_menu-support: var(--mat-exp-menu-supporting-color, var(--mat-sys-on-surface-variant));--_menu-icon: var(--mat-exp-menu-icon-color, var(--mat-sys-on-surface-variant));--_menu-interactive-icon: var(--_menu-icon);--_menu-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary-container));--_menu-on-selected: var( --mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary-container) );--_menu-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-surface));--_menu-disabled: var(--mat-exp-menu-disabled-content-color, var(--mat-sys-on-surface));--_menu-target-height: 3rem;--_menu-block-padding: .5rem;display:flex;flex-direction:column;box-sizing:border-box;inline-size:max-content;min-inline-size:min(var(--mat-exp-menu-min-width, 7rem),100vw - 1rem);max-inline-size:min(var(--mat-exp-menu-max-width, 24rem),100vw - 1rem);max-block-size:calc(100dvh - 1rem);border-radius:var(--mat-exp-menu-container-shape, 1rem);background:var(--_menu-surface);color:var(--_menu-label);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2));font-family:var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));font-size:var(--mat-exp-menu-label-size, .875rem);font-weight:var(--mat-exp-menu-label-weight, 500);line-height:var(--mat-exp-menu-label-line-height, 1.25rem);letter-spacing:var(--mat-exp-menu-label-tracking, .00625rem);text-align:start;isolation:isolate}.mat-exp-menu-surface[data-focused=false]{border-radius:var(--mat-exp-menu-inactive-shape, .5rem)}.mat-exp-menu-surface[data-color=vibrant]{--_menu-surface: var(--mat-exp-menu-container-color, var(--mat-sys-tertiary-container));--_menu-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-tertiary-container));--_menu-support: var(--mat-exp-menu-supporting-color, var(--mat-sys-on-tertiary-container));--_menu-icon: var(--mat-exp-menu-icon-color, var(--mat-sys-on-tertiary-container));--_menu-interactive-icon: var(--mat-exp-menu-interactive-icon-color, var(--mat-sys-tertiary));--_menu-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary));--_menu-on-selected: var(--mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary));--_menu-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-tertiary-container));--_menu-disabled: var( --mat-exp-menu-disabled-content-color, var(--mat-sys-on-tertiary-container) )}.mat-exp-menu-surface[data-density=\"-1\"]{--_menu-target-height: 2.75rem;--_menu-block-padding: .375rem}.mat-exp-menu-surface[data-density=\"-2\"]{--_menu-target-height: 2.5rem;--_menu-block-padding: .25rem}.mat-exp-menu-surface[data-density=\"-3\"]{--_menu-target-height: 2.25rem;--_menu-block-padding: .125rem}.mat-exp-menu-list{box-sizing:border-box;min-block-size:0;min-inline-size:0;overflow-y:hidden;overflow-x:hidden;overscroll-behavior:contain;border-radius:inherit;padding:0;scrollbar-color:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline)) var(--_menu-surface)}.mat-exp-menu-surface:not([data-separation=gap]),.mat-exp-menu-surface[data-scrollable=true]{overflow:hidden}.mat-exp-menu-surface[data-scrollable=true]>.mat-exp-menu-list{overflow-y:scroll;scrollbar-gutter:stable}@supports selector(::-webkit-scrollbar){.mat-exp-menu-list{scrollbar-color:auto;scrollbar-width:auto}}.mat-exp-menu-list::-webkit-scrollbar-button{display:none}.mat-exp-menu-list::-webkit-scrollbar{width:var(--mat-exp-menu-scrollbar-width, .75rem)}.mat-exp-menu-list::-webkit-scrollbar-track{margin-block:.25rem;background:var(--_menu-surface)}.mat-exp-menu-list::-webkit-scrollbar-thumb{border:3px solid var(--_menu-surface);border-radius:.75rem;background:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline))}.mat-exp-menu-group{display:flow-root;padding:var(--mat-exp-menu-group-padding, .125rem);min-inline-size:0;border-radius:var(--mat-exp-menu-group-shape, .5rem);background:var(--_menu-surface)}.mat-exp-menu-separator{box-sizing:border-box;block-size:var(--mat-exp-menu-gap, .125rem);flex:0 0 auto;border-block-start:1px solid var(--mat-exp-menu-divider-color, var(--mat-sys-outline-variant))}.mat-exp-menu-group-label{display:flex;align-items:center;box-sizing:border-box;min-block-size:var(--mat-exp-menu-group-label-height, 2rem);padding-inline:var(--mat-exp-menu-item-inline-padding, 1rem);padding-block:.25rem;color:var(--_menu-support);overflow-wrap:anywhere}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true]){background:transparent;box-shadow:none}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-list{display:flex;flex-direction:column;gap:0;padding:0;overflow:visible}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-list>.mat-exp-menu-group{flex-shrink:0;padding:var(--mat-exp-menu-group-padding, .125rem);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2))}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-list>.mat-exp-menu-separator{block-size:var(--mat-exp-menu-gap, .125rem);border:0}.mat-exp-menu-surface[data-separation=gap]:not([data-scrollable=true])>.mat-exp-menu-filter{margin-block-end:var(--mat-exp-menu-gap, .125rem);border-radius:var(--mat-exp-menu-group-shape, .5rem)}.mat-exp-menu-item{--_menu-item-background: transparent;--_menu-item-foreground: var(--_menu-label);--_menu-item-support: var(--_menu-support);--_menu-item-icon: var(--_menu-icon);--_menu-item-layer: var(--_menu-state);--_menu-item-opacity: 1;--_menu-container-opacity: 1;--_menu-state-opacity: 0;--mat-ripple-color: color-mix(in srgb, var(--_menu-item-layer) 10%, transparent);position:relative;display:flex;align-items:center;box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:var(--mat-exp-menu-item-target-height, var(--_menu-target-height));gap:var(--mat-exp-menu-item-gap, .75rem);margin:0;padding-block:var(--mat-exp-menu-item-block-padding, var(--_menu-block-padding));padding-inline:var(--mat-exp-menu-item-inline-padding, 1rem);border:0;border-radius:var(--mat-exp-menu-item-shape, .25rem);outline:none;background:transparent;color:var(--_menu-item-foreground);font:inherit;letter-spacing:inherit;text-align:start;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;isolation:isolate}.mat-exp-menu-item:before,.mat-exp-menu-item:after{position:absolute;inset:.125rem 0;z-index:-1;border-radius:inherit;pointer-events:none;content:\"\"}.mat-exp-menu-item:before{background:var(--_menu-item-background);opacity:var(--_menu-container-opacity)}.mat-exp-menu-item:after{background:var(--_menu-item-layer);opacity:var(--_menu-state-opacity)}.mat-exp-menu-item[data-first=true]{border-start-start-radius:var(--mat-exp-menu-item-outer-shape, .75rem);border-start-end-radius:var(--mat-exp-menu-item-outer-shape, .75rem)}.mat-exp-menu-item[data-last=true]{border-end-start-radius:var(--mat-exp-menu-item-outer-shape, .75rem);border-end-end-radius:var(--mat-exp-menu-item-outer-shape, .75rem)}.mat-exp-menu-item:where(:hover,[aria-expanded=true]):not([aria-disabled=true]){--_menu-state-opacity: .08;--_menu-item-icon: var(--_menu-interactive-icon)}.mat-exp-menu-item:where(:focus-visible,[data-keyboard-focus=true],:active):not([aria-disabled=true]){--_menu-state-opacity: .1;--_menu-item-icon: var(--_menu-interactive-icon)}.mat-exp-menu-item[aria-checked=true]{--_menu-item-background: var(--_menu-selected);--_menu-item-foreground: var(--_menu-on-selected);--_menu-item-support: var(--_menu-on-selected);--_menu-item-icon: var(--_menu-on-selected);--_menu-item-layer: var(--_menu-on-selected);border-radius:var(--mat-exp-menu-selected-shape, .75rem)}.mat-exp-menu-item[aria-disabled=true]{--_menu-item-foreground: var(--_menu-disabled);--_menu-item-support: var(--_menu-disabled);--_menu-item-icon: var(--_menu-disabled);--_menu-item-opacity: .38;cursor:default}.mat-exp-menu-item[aria-disabled=true][aria-checked=true]{--_menu-item-foreground: var(--_menu-on-selected);--_menu-item-support: var(--_menu-on-selected);--_menu-item-icon: var(--_menu-on-selected);--_menu-container-opacity: .38}.mat-exp-menu-item:where(:focus-visible,[data-keyboard-focus=true]){outline:var(--mat-exp-menu-focus-width, 3px) solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:var(--mat-exp-menu-focus-offset, -3px)}.mat-exp-menu-item>*{opacity:var(--_menu-item-opacity)}.mat-exp-menu-surface[data-color=vibrant] .mat-exp-menu-item[aria-disabled=true][aria-checked=true]{--_menu-container-opacity: 1}.mat-exp-menu-leading,.mat-exp-menu-trailing-icon,.mat-exp-menu-check{flex:none;inline-size:var(--mat-exp-menu-icon-size, 1.25rem);block-size:var(--mat-exp-menu-icon-size, 1.25rem);font-size:var(--mat-exp-menu-icon-size, 1.25rem);line-height:1;color:var(--_menu-item-icon)}.mat-exp-menu-submenu-arrow:dir(rtl){transform:scaleX(-1)}.mat-exp-menu-text{display:flex;flex:1;flex-direction:column;min-inline-size:0;overflow-wrap:anywhere}.mat-exp-menu-label{color:var(--_menu-item-foreground)}.mat-exp-menu-supporting{color:var(--_menu-item-support);font-family:var(--mat-exp-menu-supporting-font, var(--mat-sys-body-small-font, sans-serif));font-size:var(--mat-exp-menu-supporting-size, .75rem);font-weight:var(--mat-exp-menu-supporting-weight, 400);line-height:var(--mat-exp-menu-supporting-line-height, 1rem);letter-spacing:var(--mat-exp-menu-supporting-tracking, .025rem)}.mat-exp-menu-trailing-text{flex:0 1 auto;min-inline-size:0;color:var(--_menu-item-support);overflow-wrap:anywhere;text-align:end}.mat-exp-menu-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem;padding-inline:.25rem;border-radius:var(--mat-exp-menu-badge-shape, 1rem);background:var(--mat-exp-menu-badge-color, var(--mat-sys-error));color:var(--mat-exp-menu-badge-text-color, var(--mat-sys-on-error));font:var(--mat-sys-label-small)}.mat-exp-menu-filter{display:flex;flex:none;flex-direction:column;box-sizing:border-box;min-inline-size:0;padding:.5rem 1rem;border-radius:inherit;background:var(--_menu-surface);color:var(--_menu-support)}.mat-exp-menu-filter input{box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:3rem;padding:.5rem;border:1px solid var(--mat-exp-menu-filter-outline-color, var(--mat-sys-outline));border-radius:.25rem;background:transparent;color:var(--_menu-label);caret-color:var(--mat-sys-primary);font:inherit}.mat-exp-menu-filter input:focus-visible{outline:3px solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:-3px}.mat-exp-menu-filter input::placeholder{color:var(--_menu-support);opacity:1}.mat-exp-menu-empty{padding:1rem;color:var(--_menu-support);overflow-wrap:anywhere}.mat-exp-menu-status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(forced-colors:active){.mat-exp-menu-list{scrollbar-color:auto}.mat-exp-menu-list::-webkit-scrollbar-track{background:Canvas}.mat-exp-menu-list::-webkit-scrollbar-thumb{border-color:Canvas;background:CanvasText}.mat-exp-menu-surface,.mat-exp-menu-group,.mat-exp-menu-filter{border:1px solid CanvasText}.mat-exp-menu-item[aria-checked=true]{--_menu-item-background: Highlight;--_menu-item-foreground: HighlightText;--_menu-item-support: HighlightText;--_menu-item-icon: HighlightText;forced-color-adjust:none}.mat-exp-menu-item[aria-disabled=true]{--_menu-item-foreground: GrayText;--_menu-item-support: GrayText;--_menu-item-icon: GrayText;--_menu-item-opacity: 1;--_menu-container-opacity: 1}.mat-exp-menu-item:where(:focus-visible,[data-keyboard-focus=true]),.mat-exp-menu-filter input:focus-visible{outline-color:Highlight}.mat-exp-menu-item[aria-checked=true]:where(:focus-visible,[data-keyboard-focus=true]){outline-color:CanvasText}.mat-exp-menu-separator{border-block-start-color:CanvasText}}@media(prefers-reduced-motion:reduce){.mat-exp-menu-item .mat-ripple-element{transition:none!important}}.mat-exp-menu-authored-item>mat-icon{flex:none;width:1.25rem;height:1.25rem;font-size:1.25rem;color:var(--_menu-item-icon)}.mat-exp-menu-authored-item[aria-disabled=true]{color:color-mix(in srgb,var(--_menu-item-foreground) 38%,transparent)}.mat-exp-menu-authored-item[aria-disabled=true]>*{opacity:1}.mat-exp-menu-authored-item[aria-disabled=true]>mat-icon{color:color-mix(in srgb,var(--_menu-item-icon) 38%,transparent)}.mat-exp-menu-authored-item[aria-disabled=true]>:is(.mat-exp-menu-text,.mat-exp-menu-label,.mat-exp-menu-supporting,.mat-exp-menu-trailing-text,.mat-exp-menu-leading,.mat-exp-menu-trailing-icon,.mat-exp-menu-check,.mat-exp-menu-badge){opacity:var(--_menu-item-opacity)}.mat-exp-menu-authored-item[aria-disabled=true]>.mat-exp-menu-text{color:var(--_menu-item-foreground)}.mat-exp-menu-authored-item[aria-disabled=true]>mat-icon:is(.mat-exp-menu-leading,.mat-exp-menu-trailing-icon,.mat-exp-menu-check){color:var(--_menu-item-icon)}\n"] }]
7060
+ }], ctorParameters: () => [], propDecorators: { owner: [{ type: i0.Input, args: [{ isSignal: true, alias: "owner", required: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], parentOrigin: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentOrigin", required: false }] }], parentMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentMenu", required: false }] }], _menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }], _surface: [{ type: i0.ViewChild, args: ['surface', { isSignal: true }] }], _list: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }], _input: [{ type: i0.ViewChild, args: ['filter', { isSignal: true }] }] } });
7061
+
7062
+ /** Customize noninteractive item content while retaining the item's single action and semantics. */
7063
+ class MatExpMenuItemTemplate {
7064
+ /** @internal */
7065
+ template = inject(TemplateRef);
7066
+ static ngTemplateContextGuard(_directive, _context) {
7067
+ return true;
7068
+ }
7069
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuItemTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7070
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.3", type: MatExpMenuItemTemplate, isStandalone: true, selector: "ng-template[matExpMenuItemTemplate]", ngImport: i0 });
7071
+ }
7072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuItemTemplate, decorators: [{
7073
+ type: Directive,
7074
+ args: [{ selector: 'ng-template[matExpMenuItemTemplate]' }]
7075
+ }] });
7076
+ /** A reusable Expressive menu definition, opened by a button or context trigger. */
7077
+ class MatExpMenu {
7078
+ _destroyRef = inject(DestroyRef);
7079
+ _options = injectMatExpMenuOptions();
7080
+ _overlay = inject(Overlay);
7081
+ _view = inject(ViewContainerRef);
7082
+ _document = inject(DOCUMENT);
7083
+ _direction = inject(Directionality);
7084
+ _browser = isPlatformBrowser(inject(PLATFORM_ID));
7085
+ _portal = viewChild.required('portal', /* @ts-ignore */
7086
+ ...(ngDevMode ? [{ debugName: "_portal" }] : /* istanbul ignore next */ []));
7087
+ _surface = viewChild(MatExpMenuSurface, /* @ts-ignore */
7088
+ ...(ngDevMode ? [{ debugName: "_surface" }] : /* istanbul ignore next */ []));
7089
+ _overlayRef;
7090
+ _origin;
7091
+ _point;
7092
+ _pendingFocus = false;
7093
+ /** @internal Opening identity guards deferred authored callbacks. */
7094
+ _openingId = 0;
7095
+ /** @internal */
7096
+ _parentMenu;
7097
+ _childMenu;
7098
+ /** @internal */
7099
+ _content = contentChild(MatExpMenuContent, /* @ts-ignore */
7100
+ ...(ngDevMode ? [{ debugName: "_content" }] : /* istanbul ignore next */ []));
7101
+ _session;
7102
+ _triggerOwner = signal(undefined, /* @ts-ignore */
7103
+ ...(ngDevMode ? [{ debugName: "_triggerOwner" }] : /* istanbul ignore next */ []));
7104
+ _data = signal({}, /* @ts-ignore */
7105
+ ...(ngDevMode ? [{ debugName: "_data" }] : /* istanbul ignore next */ []));
7106
+ /** Context supplied by the trigger that owns the current opening. @internal */
7107
+ _triggerData = this._data.asReadonly();
7108
+ /** Entries; each ID must be unique throughout the menu tree. @default [] */
7109
+ items = input([], /* @ts-ignore */
7110
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
7111
+ /** Accessible name for the menu or searchable menu dialog. @default 'Actions' */
7112
+ label = input('Actions', /* @ts-ignore */
7113
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
7114
+ /** Optional Material-style accessible name overriding label. */
7115
+ ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
7116
+ ariaLabelledby = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
7117
+ ariaDescribedby = input(undefined, { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
7118
+ /** Classes placed on the rendered surface. */
7119
+ panelClass = input([], /* @ts-ignore */
7120
+ ...(ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []));
7121
+ /** Preferred horizontal alignment; viewport fallbacks remain enabled. */
7122
+ xPosition = input('after', /* @ts-ignore */
7123
+ ...(ngDevMode ? [{ debugName: "xPosition" }] : /* istanbul ignore next */ []));
7124
+ /** Preferred vertical alignment; viewport fallbacks remain enabled. */
7125
+ yPosition = input('below', /* @ts-ignore */
7126
+ ...(ngDevMode ? [{ debugName: "yPosition" }] : /* istanbul ignore next */ []));
7127
+ /** Align with the trigger's edge instead of leaving the default 4px gap. */
7128
+ overlapTrigger = input(false, { ...(ngDevMode ? { debugName: "overlapTrigger" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7129
+ /** Classes on the CDK overlay pane. */
7130
+ overlayPanelClass = input([], /* @ts-ignore */
7131
+ ...(ngDevMode ? [{ debugName: "overlayPanelClass" }] : /* istanbul ignore next */ []));
7132
+ /** Whether to show a dismissible backdrop. Defaults to outside-pointer dismissal. */
7133
+ hasBackdrop = input(false, { ...(ngDevMode ? { debugName: "hasBackdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7134
+ /** Backdrop classes, used only when hasBackdrop is true. */
7135
+ backdropClass = input('cdk-overlay-transparent-backdrop', /* @ts-ignore */
7136
+ ...(ngDevMode ? [{ debugName: "backdropClass" }] : /* istanbul ignore next */ []));
7137
+ /** Standard surface or vibrant tertiary palette. @default 'standard' */
7138
+ color = input(this._options.color, /* @ts-ignore */
7139
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
7140
+ /** Explicit web density; font sizes remain unchanged. @default 0 */
7141
+ density = input(this._options.density, /* @ts-ignore */
7142
+ ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
7143
+ /** Separation between groups. Overflowing menus automatically use dividers. @default 'divider' */
7144
+ separation = input(this._options.separation, /* @ts-ignore */
7145
+ ...(ngDevMode ? [{ debugName: "separation" }] : /* istanbul ignore next */ []));
7146
+ /** Enable Expressive motion. Reduced motion always takes precedence. @default true */
7147
+ motion = input(this._options.motion, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7148
+ /** Add a search field outside the menu's command navigation. @default false */
7149
+ filterable = input(false, { ...(ngDevMode ? { debugName: "filterable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7150
+ /** Localized search-field label. @default 'Filter options' */
7151
+ filterLabel = input(this._options.filterLabel, /* @ts-ignore */
7152
+ ...(ngDevMode ? [{ debugName: "filterLabel" }] : /* istanbul ignore next */ []));
7153
+ /** Localized empty-results message. @default 'No matching options' */
7154
+ emptyLabel = input(this._options.emptyLabel, /* @ts-ignore */
7155
+ ...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
7156
+ /** Maximum scroll viewport height in CSS pixels, also constrained by the window. @default 480 */
7157
+ maxHeight = input(480, /* @ts-ignore */
7158
+ ...(ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []));
7159
+ /** Selected checkbox/radio IDs. @default [] */
7160
+ value = model([], /* @ts-ignore */
7161
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7162
+ /** Filter query, retained when the menu closes. @default '' */
7163
+ query = model('', /* @ts-ignore */
7164
+ ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
7165
+ /** Emitted for an enabled command or selection. Submenu expansion does not emit. */
7166
+ itemSelected = output();
7167
+ /** Emitted after opening is requested. */
7168
+ opened = output();
7169
+ /** Emitted when the menu is dismissed. */
7170
+ closed = output();
7171
+ _open = signal(false, /* @ts-ignore */
7172
+ ...(ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []));
7173
+ /** Whether the menu accepts interaction, excluding its exit transition. */
7174
+ isOpen = this._open.asReadonly();
7175
+ /** @internal */
7176
+ _id = inject(_IdGenerator).getId('mat-exp-menu-');
7177
+ /** ID of the rendered root menu or searchable dialog. */
7178
+ get panelId() {
7179
+ return this._id;
7180
+ }
7181
+ /** @internal */
7182
+ _itemTemplate = contentChild(MatExpMenuItemTemplate, /* @ts-ignore */
7183
+ ...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
7184
+ constructor() {
7185
+ afterRenderEffect(() => {
7186
+ const surface = this._surface();
7187
+ if (surface?._shown() && this._pendingFocus && this.isOpen()) {
7188
+ this._pendingFocus = false;
7189
+ surface._focusFirst();
7190
+ this._overlayRef?.updatePosition();
7191
+ }
7192
+ });
7193
+ inject(DestroyRef).onDestroy(() => {
7194
+ this._overlayRef?.dispose();
7195
+ this._document.defaultView?.removeEventListener('popstate', this._back);
7196
+ });
7197
+ }
7198
+ /** Open beside an element, or at viewport coordinates for a context menu. */
7199
+ open(origin, point, options) {
7200
+ if (!this._browser)
7201
+ return;
7202
+ if (this._content() && (this.items().length || this.filterable()))
7203
+ throw new Error('MatExpMenu authored content cannot be combined with items or filterable.');
7204
+ for (let parent = options?.parent; parent; parent = parent._parentMenu) {
7205
+ if (parent === this)
7206
+ throw new Error('MatExpMenu cannot contain a trigger for itself or an ancestor.');
7207
+ }
7208
+ if (this.isOpen()) {
7209
+ if (this._origin === origin &&
7210
+ this._triggerOwner() === options?.trigger &&
7211
+ this._point?.x === point?.x &&
7212
+ this._point?.y === point?.y) {
7213
+ if (options?.parent &&
7214
+ options.focus !== false &&
7215
+ !this._overlayRef?.overlayElement.contains(this._document.activeElement))
7216
+ this.focusFirstItem('keyboard');
7217
+ return;
7218
+ }
7219
+ // Moving a shared menu must not briefly restore focus to the previous trigger.
7220
+ if (this._session)
7221
+ this._session = { ...this._session, restoreFocus: false };
7222
+ else
7223
+ this._session = { restoreFocus: false };
7224
+ this.close();
7225
+ }
7226
+ this._overlayRef?.dispose();
7227
+ this._openingId++;
7228
+ this._origin = origin;
7229
+ this._point = point ? { ...point } : undefined;
7230
+ this._session = options;
7231
+ this._parentMenu = options?.parent;
7232
+ if (this._parentMenu) {
7233
+ this._parentMenu._closeChild();
7234
+ this._parentMenu._childMenu = this;
7235
+ }
7236
+ this._triggerOwner.set(options?.trigger);
7237
+ this._data.set(options?.data ?? {});
7238
+ const x = this.xPosition() === 'after' ? 'start' : 'end';
7239
+ const otherX = x === 'start' ? 'end' : 'start';
7240
+ const below = this.yPosition() === 'below';
7241
+ const candidate = (horizontal, down) => ({
7242
+ originX: horizontal,
7243
+ overlayX: horizontal,
7244
+ originY: this.overlapTrigger() ? (down ? 'top' : 'bottom') : down ? 'bottom' : 'top',
7245
+ overlayY: down ? 'top' : 'bottom',
7246
+ offsetY: point || this.overlapTrigger() ? 0 : down ? 4 : -4,
7247
+ });
7248
+ const position = this._overlay
7249
+ .position()
7250
+ .flexibleConnectedTo(point ?? origin)
7251
+ .withPositions([
7252
+ candidate(x, below),
7253
+ candidate(x, !below),
7254
+ candidate(otherX, below),
7255
+ candidate(otherX, !below),
7256
+ ])
7257
+ .withViewportMargin(8)
7258
+ .withPush(true)
7259
+ .withFlexibleDimensions(false)
7260
+ .withTransformOriginOn('.mat-exp-menu-surface');
7261
+ const parentElement = this._parentMenu?._surface()?._menu()?.element;
7262
+ if (parentElement) {
7263
+ const offset = this._direction.value === 'rtl' ? -4 : 4;
7264
+ position
7265
+ .withPositions([
7266
+ { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: offset },
7267
+ { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top', offsetX: -offset },
7268
+ {
7269
+ originX: 'end',
7270
+ originY: 'bottom',
7271
+ overlayX: 'start',
7272
+ overlayY: 'bottom',
7273
+ offsetX: offset,
7274
+ },
7275
+ {
7276
+ originX: 'start',
7277
+ originY: 'bottom',
7278
+ overlayX: 'end',
7279
+ overlayY: 'bottom',
7280
+ offsetX: -offset,
7281
+ },
7282
+ ])
7283
+ .withPopoverLocation({ type: 'parent', element: parentElement });
7284
+ }
7285
+ const ref = this._overlay.create({
7286
+ positionStrategy: position,
7287
+ scrollStrategy: this._overlay.scrollStrategies.reposition(),
7288
+ direction: this._direction.value,
7289
+ usePopover: true,
7290
+ panelClass: this.overlayPanelClass(),
7291
+ hasBackdrop: !parentElement && this.hasBackdrop(),
7292
+ backdropClass: this.backdropClass(),
7293
+ });
7294
+ this._overlayRef = ref;
7295
+ this._open.set(true);
7296
+ this._pendingFocus = options?.focus !== false;
7297
+ ref.attach(new TemplatePortal(this._portal(), this._view));
7298
+ ref.outsidePointerEvents().subscribe((event) => {
7299
+ if (!ref.overlayElement.contains(event.target) &&
7300
+ !origin.contains(event.target))
7301
+ this.close('outside');
7302
+ });
7303
+ ref.backdropClick().subscribe(() => this.close('outside'));
7304
+ this._document.defaultView?.addEventListener('popstate', this._back);
7305
+ this.opened.emit();
7306
+ options?.opened?.();
7307
+ }
7308
+ /** Dismiss the menu; Escape/selection/programmatic dismissal restore trigger focus. */
7309
+ close(reason = 'programmatic') {
7310
+ if (!this.isOpen())
7311
+ return;
7312
+ this._closeChild();
7313
+ if (this._parentMenu?._childMenu === this)
7314
+ this._parentMenu._childMenu = undefined;
7315
+ this._parentMenu = undefined;
7316
+ const session = this._session;
7317
+ this._session = undefined;
7318
+ this._open.set(false);
7319
+ this._triggerOwner.set(undefined);
7320
+ this._document.defaultView?.removeEventListener('popstate', this._back);
7321
+ if (session?.restoreFocus !== false && reason !== 'outside' && this._origin?.isConnected)
7322
+ this._origin.focus({ preventScroll: true });
7323
+ const ref = this._overlayRef;
7324
+ const done = () => {
7325
+ ref?.dispose();
7326
+ if (this._overlayRef === ref)
7327
+ this._overlayRef = undefined;
7328
+ };
7329
+ const surface = this._surface();
7330
+ if (surface)
7331
+ surface._exit(done);
7332
+ else
7333
+ done();
7334
+ if (!this._destroyRef.destroyed)
7335
+ this.closed.emit(reason);
7336
+ session?.closed?.();
7337
+ }
7338
+ /** Close descendants without stealing focus from a newly active sibling. @internal */
7339
+ _closeChild(exceptOrigin) {
7340
+ const child = this._childMenu;
7341
+ if (!child || child._origin === exceptOrigin)
7342
+ return;
7343
+ this._childMenu = undefined;
7344
+ if (child._session)
7345
+ child._session.restoreFocus = false;
7346
+ child.close();
7347
+ }
7348
+ /** Close the entire authored menu chain after activation or Tab. @internal */
7349
+ _closeTree(reason) {
7350
+ if (this._parentMenu?.isOpen())
7351
+ this._parentMenu._closeTree(reason);
7352
+ else
7353
+ this.close(reason);
7354
+ }
7355
+ /** Focus the first item, or the filter field in a searchable menu. */
7356
+ focusFirstItem(origin) {
7357
+ if (this.isOpen())
7358
+ this._surface()?._focusFirst(origin);
7359
+ }
7360
+ /** Reset keyboard navigation so the next forward step starts at the first item. */
7361
+ resetActiveItem() {
7362
+ this._surface()?._resetActiveItem();
7363
+ }
7364
+ /** Whether a particular trigger owns this opening. @internal */
7365
+ _isOpenFor(trigger) {
7366
+ return this.isOpen() && this._triggerOwner() === trigger;
7367
+ }
7368
+ /** @internal */
7369
+ _updatePosition() {
7370
+ this._overlayRef?.updatePosition();
7371
+ }
7372
+ /** @internal */
7373
+ _select(item) {
7374
+ if (item.disabled || item.children?.length)
7375
+ return;
7376
+ if (item.type === 'checkbox') {
7377
+ this.value.update((values) => values.includes(item.id) ? values.filter((id) => id !== item.id) : [...values, item.id]);
7378
+ }
7379
+ else if (item.type === 'radio') {
7380
+ const peers = new Set(this._allItems()
7381
+ .filter((candidate) => candidate.type === 'radio' &&
7382
+ (candidate.radioGroup ?? '') === (item.radioGroup ?? ''))
7383
+ .map((candidate) => candidate.id));
7384
+ this.value.update((values) => [...values.filter((id) => !peers.has(id)), item.id]);
7385
+ }
7386
+ this.itemSelected.emit(item);
7387
+ if (item.type !== 'checkbox')
7388
+ this._closeTree('selection');
7389
+ }
7390
+ /** @internal Aria dispatches nested command values through the root menu. */
7391
+ _selectId(id) {
7392
+ const item = this._allItems().find((candidate) => candidate.id === id);
7393
+ if (item)
7394
+ this._select(item);
7395
+ }
7396
+ _allItems() {
7397
+ const result = [];
7398
+ const visit = (entries) => {
7399
+ for (const entry of entries) {
7400
+ if (entry.type === 'group')
7401
+ visit(entry.items);
7402
+ else {
7403
+ result.push(entry);
7404
+ if (entry.children)
7405
+ visit(entry.children);
7406
+ }
7407
+ }
7408
+ };
7409
+ visit(this.items());
7410
+ return result;
7411
+ }
7412
+ _back = () => this.close('escape');
7413
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
7414
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.3", type: MatExpMenu, isStandalone: true, selector: "mat-exp-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", 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 }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, panelClass: { classPropertyName: "panelClass", publicName: "panelClass", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, overlapTrigger: { classPropertyName: "overlapTrigger", publicName: "overlapTrigger", isSignal: true, isRequired: false, transformFunction: null }, overlayPanelClass: { classPropertyName: "overlayPanelClass", publicName: "overlayPanelClass", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, backdropClass: { classPropertyName: "backdropClass", publicName: "backdropClass", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, separation: { classPropertyName: "separation", publicName: "separation", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, filterable: { classPropertyName: "filterable", publicName: "filterable", isSignal: true, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyLabel: { classPropertyName: "emptyLabel", publicName: "emptyLabel", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", query: "queryChange", itemSelected: "itemSelected", opened: "opened", closed: "closed" }, queries: [{ propertyName: "_content", first: true, predicate: MatExpMenuContent, descendants: true, isSignal: true }, { propertyName: "_itemTemplate", first: true, predicate: MatExpMenuItemTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_portal", first: true, predicate: ["portal"], descendants: true, isSignal: true }, { propertyName: "_surface", first: true, predicate: MatExpMenuSurface, descendants: true, isSignal: true }], exportAs: ["matExpMenu"], ngImport: i0, template: '<ng-template #portal><mat-exp-menu-surface [owner]="this" [items]="items()" [root]="true" /></ng-template>', isInline: true, dependencies: [{ kind: "component", type: MatExpMenuSurface, selector: "mat-exp-menu-surface", inputs: ["owner", "items", "root", "parentOrigin", "parentMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7415
+ }
7416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenu, decorators: [{
7417
+ type: Component,
7418
+ args: [{
7419
+ selector: 'mat-exp-menu',
7420
+ exportAs: 'matExpMenu',
7421
+ imports: [MatExpMenuSurface],
7422
+ template: '<ng-template #portal><mat-exp-menu-surface [owner]="this" [items]="items()" [root]="true" /></ng-template>',
7423
+ changeDetection: ChangeDetectionStrategy.OnPush,
7424
+ }]
7425
+ }], ctorParameters: () => [], propDecorators: { _portal: [{ type: i0.ViewChild, args: ['portal', { isSignal: true }] }], _surface: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatExpMenuSurface), { isSignal: true }] }], _content: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MatExpMenuContent), { isSignal: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], panelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelClass", required: false }] }], xPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "xPosition", required: false }] }], yPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "yPosition", required: false }] }], overlapTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlapTrigger", required: false }] }], overlayPanelClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "overlayPanelClass", required: false }] }], hasBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackdrop", required: false }] }], backdropClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "backdropClass", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], separation: [{ type: i0.Input, args: [{ isSignal: true, alias: "separation", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], filterable: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterable", required: false }] }], filterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLabel", required: false }] }], emptyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyLabel", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], _itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MatExpMenuItemTemplate), { isSignal: true }] }] } });
7426
+
7427
+ /** Opens an Expressive menu from an existing native button or Material button. */
7428
+ class MatExpMenuTrigger {
7429
+ /** Menu definition opened by this button. */
7430
+ matExpMenuTriggerFor = input.required(/* @ts-ignore */
7431
+ ...(ngDevMode ? [{ debugName: "matExpMenuTriggerFor" }] : /* istanbul ignore next */ []));
7432
+ /** Context passed to lazily rendered content for this opening. */
7433
+ // The scoped template binding coexists with Material; the member keeps its familiar name.
7434
+ // eslint-disable-next-line @angular-eslint/no-input-rename
7435
+ menuData = input({}, { ...(ngDevMode ? { debugName: "menuData" } : /* istanbul ignore next */ {}), alias: 'matExpMenuTriggerData' });
7436
+ /** Restore this trigger's focus on keyboard/command/programmatic dismissal. */
7437
+ restoreFocus = input(true, { ...(ngDevMode ? { debugName: "restoreFocus" } : /* istanbul ignore next */ {}),
7438
+ // eslint-disable-next-line @angular-eslint/no-input-rename
7439
+ alias: 'matExpMenuTriggerRestoreFocus',
7440
+ transform: booleanAttribute });
7441
+ /** Emitted only when this trigger opens its associated menu. */
7442
+ menuOpened = output();
7443
+ /** Emitted only when this trigger's opening closes or transfers to another trigger. */
7444
+ menuClosed = output();
7445
+ _destroyRef = inject(DestroyRef);
7446
+ _parentSurface = inject(MAT_EXP_MENU_SURFACE, { optional: true });
7447
+ _focusMonitor = inject(FocusMonitor);
7448
+ /** Associated Expressive panel. */
7449
+ get menu() {
7450
+ return this.matExpMenuTriggerFor();
7451
+ }
7452
+ /** Whether this trigger owns the currently open panel. */
7453
+ get menuOpen() {
7454
+ return this.menu._isOpenFor(this);
7455
+ }
7456
+ _element = inject(ElementRef).nativeElement;
7457
+ constructor() {
7458
+ // A menu button inside a form must not accidentally submit it. Preserve an
7459
+ // explicitly chosen native type, as Angular Aria's own trigger does.
7460
+ if (!this._element.hasAttribute('type'))
7461
+ this._element.type = 'button';
7462
+ this._parentSurface?._registerSubmenu(this._element, this);
7463
+ inject(DestroyRef).onDestroy(() => this._parentSurface?._removeSubmenu(this._element));
7464
+ effect((onCleanup) => {
7465
+ const menu = this.matExpMenuTriggerFor();
7466
+ onCleanup(() => {
7467
+ if (menu._isOpenFor(this))
7468
+ menu.close();
7469
+ });
7470
+ });
7471
+ }
7472
+ /** Open and focus the first item (or filter field in searchable menus). */
7473
+ openMenu() {
7474
+ this._open(true);
7475
+ }
7476
+ /** @internal */
7477
+ _openFromHover() {
7478
+ this._open(false);
7479
+ }
7480
+ _open(focus) {
7481
+ if (this._disabled())
7482
+ return;
7483
+ this.menu.open(this._element, undefined, {
7484
+ trigger: this,
7485
+ focus,
7486
+ parent: this._parentSurface?.owner(),
7487
+ data: this.menuData(),
7488
+ restoreFocus: this.restoreFocus(),
7489
+ opened: () => {
7490
+ if (!this._destroyRef.destroyed)
7491
+ this.menuOpened.emit();
7492
+ },
7493
+ closed: () => {
7494
+ if (!this._destroyRef.destroyed)
7495
+ this.menuClosed.emit();
7496
+ },
7497
+ });
7498
+ }
7499
+ /** Existing shorthand retained for compatibility. */
7500
+ open() {
7501
+ this.openMenu();
7502
+ }
7503
+ /** Close this trigger's opening without affecting another trigger's shared menu. */
7504
+ closeMenu() {
7505
+ if (this.menuOpen)
7506
+ this.menu.close();
7507
+ }
7508
+ /** Toggle this trigger's opening; take ownership when another trigger opened the panel. */
7509
+ toggleMenu() {
7510
+ if (this.menuOpen)
7511
+ this.closeMenu();
7512
+ else
7513
+ this.openMenu();
7514
+ }
7515
+ /** Reposition this trigger's open overlay against the current viewport. */
7516
+ updatePosition() {
7517
+ if (this.menuOpen)
7518
+ this.menu._updatePosition();
7519
+ }
7520
+ /** Focus the trigger with an optional CDK focus origin. */
7521
+ focus(origin, options) {
7522
+ if (origin)
7523
+ this._focusMonitor.focusVia(this._element, origin, options);
7524
+ else
7525
+ this._element.focus(options);
7526
+ }
7527
+ /** @internal */
7528
+ _click() {
7529
+ if (!this._disabled())
7530
+ this.toggleMenu();
7531
+ }
7532
+ /** @internal */
7533
+ _keydown(event) {
7534
+ if (this._parentSurface)
7535
+ return;
7536
+ if ((event.key === 'ArrowDown' || event.key === 'ArrowUp') && !this._disabled()) {
7537
+ event.preventDefault();
7538
+ this.open();
7539
+ }
7540
+ }
7541
+ _disabled() {
7542
+ return this._element.disabled || this._element.getAttribute('aria-disabled') === 'true';
7543
+ }
7544
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7545
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", type: MatExpMenuTrigger, isStandalone: true, selector: "button[matExpMenuTriggerFor]", inputs: { matExpMenuTriggerFor: { classPropertyName: "matExpMenuTriggerFor", publicName: "matExpMenuTriggerFor", isSignal: true, isRequired: true, transformFunction: null }, menuData: { classPropertyName: "menuData", publicName: "matExpMenuTriggerData", isSignal: true, isRequired: false, transformFunction: null }, restoreFocus: { classPropertyName: "restoreFocus", publicName: "matExpMenuTriggerRestoreFocus", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuOpened: "menuOpened", menuClosed: "menuClosed" }, host: { listeners: { "click": "_click()", "keydown": "_keydown($event)" }, properties: { "attr.aria-haspopup": "matExpMenuTriggerFor().filterable() ? \"dialog\" : \"menu\"", "attr.aria-expanded": "menuOpen", "attr.aria-controls": "menuOpen ? menu.panelId : null", "attr.data-menu-open": "menuOpen" }, classAttribute: "mat-exp-menu-trigger" }, providers: [
7546
+ {
7547
+ provide: MAT_EXP_MENU_OPEN_STATE,
7548
+ useFactory: () => {
7549
+ const trigger = inject(MatExpMenuTrigger);
7550
+ return computed(() => trigger.menuOpen);
7551
+ },
7552
+ },
7553
+ ], exportAs: ["matExpMenuTrigger"], ngImport: i0 });
7554
+ }
7555
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuTrigger, decorators: [{
7556
+ type: Directive,
7557
+ args: [{
7558
+ selector: 'button[matExpMenuTriggerFor]',
7559
+ exportAs: 'matExpMenuTrigger',
7560
+ providers: [
7561
+ {
7562
+ provide: MAT_EXP_MENU_OPEN_STATE,
7563
+ useFactory: () => {
7564
+ const trigger = inject(MatExpMenuTrigger);
7565
+ return computed(() => trigger.menuOpen);
7566
+ },
7567
+ },
7568
+ ],
7569
+ host: {
7570
+ class: 'mat-exp-menu-trigger',
7571
+ '[attr.aria-haspopup]': 'matExpMenuTriggerFor().filterable() ? "dialog" : "menu"',
7572
+ '[attr.aria-expanded]': 'menuOpen',
7573
+ '[attr.aria-controls]': 'menuOpen ? menu.panelId : null',
7574
+ '[attr.data-menu-open]': 'menuOpen',
7575
+ '(click)': '_click()',
7576
+ '(keydown)': '_keydown($event)',
7577
+ },
7578
+ }]
7579
+ }], ctorParameters: () => [], propDecorators: { matExpMenuTriggerFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "matExpMenuTriggerFor", required: true }] }], menuData: [{ type: i0.Input, args: [{ isSignal: true, alias: "matExpMenuTriggerData", required: false }] }], restoreFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "matExpMenuTriggerRestoreFocus", required: false }] }], menuOpened: [{ type: i0.Output, args: ["menuOpened"] }], menuClosed: [{ type: i0.Output, args: ["menuClosed"] }] } });
7580
+ /** Right-click and keyboard context-menu support for a focusable target. */
7581
+ class MatExpMenuContextTrigger {
7582
+ /** Menu definition opened for the target. */
7583
+ matExpMenuContextFor = input.required(/* @ts-ignore */
7584
+ ...(ngDevMode ? [{ debugName: "matExpMenuContextFor" }] : /* istanbul ignore next */ []));
7585
+ _element = inject(ElementRef).nativeElement;
7586
+ /** @internal */
7587
+ _context(event) {
7588
+ event.preventDefault();
7589
+ this.matExpMenuContextFor().open(this._element, { x: event.clientX, y: event.clientY });
7590
+ }
7591
+ /** @internal */
7592
+ _keydown(event) {
7593
+ if (event.key === 'ContextMenu' || (event.shiftKey && event.key === 'F10')) {
7594
+ event.preventDefault();
7595
+ this.matExpMenuContextFor().open(this._element);
7596
+ }
7597
+ }
7598
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuContextTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7599
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", type: MatExpMenuContextTrigger, isStandalone: true, selector: "[matExpMenuContextFor]", inputs: { matExpMenuContextFor: { classPropertyName: "matExpMenuContextFor", publicName: "matExpMenuContextFor", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "tabindex": "0" }, listeners: { "contextmenu": "_context($event)", "keydown": "_keydown($event)" } }, exportAs: ["matExpMenuContextTrigger"], ngImport: i0 });
7600
+ }
7601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuContextTrigger, decorators: [{
7602
+ type: Directive,
7603
+ args: [{
7604
+ selector: '[matExpMenuContextFor]',
7605
+ exportAs: 'matExpMenuContextTrigger',
7606
+ host: { tabindex: '0', '(contextmenu)': '_context($event)', '(keydown)': '_keydown($event)' },
7607
+ }]
7608
+ }], propDecorators: { matExpMenuContextFor: [{ type: i0.Input, args: [{ isSignal: true, alias: "matExpMenuContextFor", required: true }] }] } });
7609
+
7610
+ /** An authored action on its original native button or link. */
7611
+ class MatExpMenuItemDirective {
7612
+ /** Disabled items remain focusable for discovery but cannot activate. */
7613
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7614
+ disableRipple = input(false, { ...(ngDevMode ? { debugName: "disableRipple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7615
+ /** Choice roles require authored aria-checked/state; checkboxes remain open after activation. */
7616
+ role = input('menuitem', /* @ts-ignore */
7617
+ ...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
7618
+ /** @internal */
7619
+ _element = inject(ElementRef).nativeElement;
7620
+ _surface = inject(MAT_EXP_MENU_SURFACE);
7621
+ _focusMonitor = inject(FocusMonitor);
7622
+ _ripple = inject(MatRipple);
7623
+ _captureClick = (event) => {
7624
+ if (this.disabled()) {
7625
+ event.preventDefault();
7626
+ event.stopImmediatePropagation();
7627
+ }
7628
+ };
7629
+ constructor() {
7630
+ if (this._element.tagName === 'BUTTON' && !this._element.hasAttribute('type'))
7631
+ this._element.setAttribute('type', 'button');
7632
+ this._element.addEventListener('click', this._captureClick, true);
7633
+ this._surface._registerItem(this);
7634
+ effect(() => {
7635
+ if (this._element.tagName === 'BUTTON')
7636
+ // Preserve keyboard discovery; aria-disabled and the capture guard block activation.
7637
+ this._element.disabled = false;
7638
+ this._ripple.disabled =
7639
+ this.disabled() || this.disableRipple() || !this._surface.owner().motion();
7640
+ });
7641
+ inject(DestroyRef).onDestroy(() => {
7642
+ this._element.removeEventListener('click', this._captureClick, true);
7643
+ this._surface._removeItem(this);
7644
+ this._focusMonitor.stopMonitoring(this._element);
7645
+ });
7646
+ }
7647
+ focus(origin = 'program', options) {
7648
+ this._focusMonitor.focusVia(this._element, origin, options);
7649
+ }
7650
+ getLabel() {
7651
+ const clone = this._element.cloneNode(true);
7652
+ clone.querySelectorAll('mat-icon, [aria-hidden="true"]').forEach((node) => node.remove());
7653
+ return clone.textContent?.trim() ?? '';
7654
+ }
7655
+ /** @internal */
7656
+ _focus() {
7657
+ this._surface._activateItem(this);
7658
+ }
7659
+ /** @internal */
7660
+ _hover() {
7661
+ this._surface._hoverItem(this);
7662
+ }
7663
+ /** @internal */
7664
+ _click(event) {
7665
+ event.stopPropagation();
7666
+ if (this.role() !== 'menuitemcheckbox' && !this._surface._isSubmenuItem(this._element)) {
7667
+ // Run authored click/routerLink handlers before disposing their view.
7668
+ const menu = this._surface.owner();
7669
+ const opening = menu._openingId;
7670
+ queueMicrotask(() => {
7671
+ if (menu._openingId === opening)
7672
+ menu._closeTree('selection');
7673
+ });
7674
+ }
7675
+ }
7676
+ /** @internal */
7677
+ _keydown(event) {
7678
+ this._surface._authoredKeydown(this, event);
7679
+ }
7680
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
7681
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.3", type: MatExpMenuItemDirective, isStandalone: true, selector: "button[matExpMenuItem], a[matExpMenuItem]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableRipple: { classPropertyName: "disableRipple", publicName: "disableRipple", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tabindex": "-1" }, listeners: { "click": "_click($event)", "keydown": "_keydown($event)", "focus": "_focus()", "mouseover": "_hover()" }, properties: { "attr.role": "role()", "attr.aria-disabled": "disabled() || null" }, classAttribute: "mat-exp-menu-item mat-exp-menu-authored-item" }, exportAs: ["matExpMenuItem"], hostDirectives: [{ directive: i1$1.MatRipple }], ngImport: i0 });
7682
+ }
7683
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpMenuItemDirective, decorators: [{
7684
+ type: Directive,
7685
+ args: [{
7686
+ selector: 'button[matExpMenuItem], a[matExpMenuItem]',
7687
+ exportAs: 'matExpMenuItem',
7688
+ hostDirectives: [MatRipple],
7689
+ host: {
7690
+ class: 'mat-exp-menu-item mat-exp-menu-authored-item',
7691
+ tabindex: '-1',
7692
+ '[attr.role]': 'role()',
7693
+ '[attr.aria-disabled]': 'disabled() || null',
7694
+ '(click)': '_click($event)',
7695
+ '(keydown)': '_keydown($event)',
7696
+ '(focus)': '_focus()',
7697
+ '(mouseover)': '_hover()',
7698
+ },
7699
+ }]
7700
+ }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], disableRipple: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableRipple", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }] } });
7701
+
7702
+ /** @internal Browser-rendered origin width, including later layout changes. */
7703
+ function injectOriginWidth(origin) {
7704
+ const width = signal(0, /* @ts-ignore */
7705
+ ...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
7706
+ afterRenderEffect((onCleanup) => {
7707
+ const element = origin()?.nativeElement;
7708
+ if (!element)
7709
+ return;
7710
+ const update = () => width.set(element.getBoundingClientRect().width);
7711
+ update();
7712
+ const observer = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(update);
7713
+ observer?.observe(element);
7714
+ onCleanup(() => observer?.disconnect());
7715
+ });
7716
+ return width.asReadonly();
7717
+ }
7718
+
7719
+ /** Editable single-choice field with independent query and confirmed value. */
7720
+ class MatExpAutocomplete {
7721
+ options = input([], /* @ts-ignore */
7722
+ ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
7723
+ label = input('Choose an option', /* @ts-ignore */
7724
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
7725
+ placeholder = input('Type to filter', /* @ts-ignore */
7726
+ ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
7727
+ emptyLabel = input('No matching options', /* @ts-ignore */
7728
+ ...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
7729
+ color = input('standard', /* @ts-ignore */
7730
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
7731
+ density = input(0, /* @ts-ignore */
7732
+ ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
7733
+ motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7734
+ filterMotion = input('fast', /* @ts-ignore */
7735
+ ...(ngDevMode ? [{ debugName: "filterMotion" }] : /* istanbul ignore next */ []));
7736
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7737
+ rtl = input(false, { ...(ngDevMode ? { debugName: "rtl" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7738
+ value = model(null, /* @ts-ignore */
7739
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
7740
+ query = model('', /* @ts-ignore */
7741
+ ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
7742
+ selected = output();
7743
+ opened = output();
7744
+ closed = output();
7745
+ _pressed = signal(null, /* @ts-ignore */
7746
+ ...(ngDevMode ? [{ debugName: "_pressed" }] : /* istanbul ignore next */ []));
7747
+ _expanded = signal(false, /* @ts-ignore */
7748
+ ...(ngDevMode ? [{ debugName: "_expanded" }] : /* istanbul ignore next */ []));
7749
+ _present = signal(false, /* @ts-ignore */
7750
+ ...(ngDevMode ? [{ debugName: "_present" }] : /* istanbul ignore next */ []));
7751
+ _closingMatches = signal(null, /* @ts-ignore */
7752
+ ...(ngDevMode ? [{ debugName: "_closingMatches" }] : /* istanbul ignore next */ []));
7753
+ _selection = computed(() => {
7754
+ // Aria reconciles selection against rendered options. Supply a fresh model
7755
+ // when filtering recreates the confirmed option, using its public input.
7756
+ this._matches();
7757
+ return this.value() === null ? [] : [this.value()];
7758
+ }, /* @ts-ignore */
7759
+ ...(ngDevMode ? [{ debugName: "_selection" }] : /* istanbul ignore next */ []));
7760
+ _matches = computed(() => {
7761
+ const closing = this._closingMatches();
7762
+ if (closing)
7763
+ return closing;
7764
+ const query = this.query().trim().toLocaleLowerCase();
7765
+ return this.options().filter((option) => option.toLocaleLowerCase().includes(query));
7766
+ }, /* @ts-ignore */
7767
+ ...(ngDevMode ? [{ debugName: "_matches" }] : /* istanbul ignore next */ []));
7768
+ _classes = computed(() => [
7769
+ 'mat-exp-autocomplete-surface',
7770
+ 'mat-exp-autocomplete-panel',
7771
+ `mat-exp-autocomplete-panel-${this.color()}`,
7772
+ `mat-exp-autocomplete-density${this.density()}`,
7773
+ ].join(' '), /* @ts-ignore */
7774
+ ...(ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []));
7775
+ _positions = [
7776
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },
7777
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },
7778
+ ];
7779
+ _document = inject(DOCUMENT);
7780
+ _host = inject(ElementRef);
7781
+ _input = viewChild('input', /* @ts-ignore */
7782
+ ...(ngDevMode ? [{ debugName: "_input" }] : /* istanbul ignore next */ []));
7783
+ _originElement = viewChild('origin', { ...(ngDevMode ? { debugName: "_originElement" } : /* istanbul ignore next */ {}), read: (ElementRef) });
7784
+ _popupWidth = injectOriginWidth(this._originElement);
7785
+ _panel = viewChild('panel', /* @ts-ignore */
7786
+ ...(ngDevMode ? [{ debugName: "_panel" }] : /* istanbul ignore next */ []));
7787
+ _listbox = viewChild('listbox', /* @ts-ignore */
7788
+ ...(ngDevMode ? [{ debugName: "_listbox" }] : /* istanbul ignore next */ []));
7789
+ _overlay = viewChild(CdkConnectedOverlay, /* @ts-ignore */
7790
+ ...(ngDevMode ? [{ debugName: "_overlay" }] : /* istanbul ignore next */ []));
7791
+ _motion;
7792
+ _motionPanel;
7793
+ _above = false;
7794
+ _lastOpen;
7795
+ _lastAnimate;
7796
+ _lastFilterMotion;
7797
+ _before;
7798
+ constructor() {
7799
+ effect(() => {
7800
+ this.query();
7801
+ this.options();
7802
+ if (this._expanded() && !this._before)
7803
+ this._before = this._snapshotRows();
7804
+ });
7805
+ afterRenderEffect(() => {
7806
+ const panel = this._panel()?.nativeElement;
7807
+ const open = this._expanded();
7808
+ const animate = this.motion();
7809
+ const filterMotion = this.filterMotion();
7810
+ const edge = this.rtl() ? 'right' : 'left';
7811
+ if (panel)
7812
+ panel.style.transformOrigin = `${edge} ${this._above ? 'bottom' : 'top'}`;
7813
+ this._matches();
7814
+ if (this.disabled() && open)
7815
+ this.close();
7816
+ if (panel !== this._motionPanel) {
7817
+ this._motion?.destroy();
7818
+ this._motion = undefined;
7819
+ this._motionPanel = panel;
7820
+ this._lastOpen = undefined;
7821
+ if (panel && this._document.defaultView) {
7822
+ this._motion = createMenuMotion(panel, this._document.defaultView.matchMedia('(prefers-reduced-motion: reduce)'));
7823
+ }
7824
+ }
7825
+ if (this._motion && (open !== this._lastOpen || animate !== this._lastAnimate)) {
7826
+ this._lastOpen = open;
7827
+ this._lastAnimate = animate;
7828
+ this._motion.setOpen(open, animate, open
7829
+ ? undefined
7830
+ : () => {
7831
+ if (!this._expanded()) {
7832
+ this._present.set(false);
7833
+ this.closed.emit();
7834
+ }
7835
+ });
7836
+ }
7837
+ if (panel &&
7838
+ this._lastFilterMotion !== undefined &&
7839
+ this._lastFilterMotion !== filterMotion) {
7840
+ this._before ??= this._snapshotRows();
7841
+ }
7842
+ this._lastFilterMotion = filterMotion;
7843
+ if (this._before && panel) {
7844
+ // Resolve virtual-focus scrolling first. Scroll/overlay movement is not
7845
+ // option rearrangement and must not turn into a large inverse transform.
7846
+ this._scrollActiveIntoView();
7847
+ const bounds = panel.getBoundingClientRect();
7848
+ const dy = bounds.top - this._before.top - (panel.scrollTop - this._before.scrollTop);
7849
+ const dx = bounds.left - this._before.left;
7850
+ const before = new Map([...this._before.rows].map(([row, rect]) => [
7851
+ row,
7852
+ new DOMRect(rect.x + dx, rect.y + dy, rect.width, rect.height),
7853
+ ]));
7854
+ this._motion?.relocate(before, this._rows(), animate && filterMotion !== 'off', filterMotion === 'standard' ? DEFAULT_SPATIAL_SPRING : FAST_SPATIAL_SPRING, (row) => Math.max(0, ((row.parentElement?.clientHeight ?? row.offsetHeight) - row.offsetHeight) / 2 - 1));
7855
+ this._before = undefined;
7856
+ this._overlay()?.overlayRef?.updatePosition();
7857
+ }
7858
+ });
7859
+ afterRenderEffect(() => {
7860
+ this._popupWidth();
7861
+ this._overlay()?.overlayRef?.updatePosition();
7862
+ this._scrollActiveIntoView();
7863
+ });
7864
+ inject(DestroyRef).onDestroy(() => this._motion?.destroy());
7865
+ }
7866
+ get isOpen() {
7867
+ return this._expanded();
7868
+ }
7869
+ open() {
7870
+ if (this.disabled())
7871
+ return;
7872
+ const wasOpen = this._expanded();
7873
+ this._closingMatches.set(null);
7874
+ this._present.set(true);
7875
+ this._expanded.set(true);
7876
+ if (!wasOpen)
7877
+ this.opened.emit();
7878
+ }
7879
+ close() {
7880
+ this._pressed.set(null);
7881
+ if (this._expanded())
7882
+ this._closingMatches.set(this._matches());
7883
+ this._expanded.set(false);
7884
+ }
7885
+ _expand(open) {
7886
+ if (open)
7887
+ this.open();
7888
+ else
7889
+ this.close();
7890
+ }
7891
+ _edit(query) {
7892
+ this._before = this._snapshotRows();
7893
+ this.query.set(query);
7894
+ this.open();
7895
+ }
7896
+ _choose(option) {
7897
+ if (this.disabled() || !this._expanded())
7898
+ return;
7899
+ this.value.set(option);
7900
+ this.close();
7901
+ this.query.set(option);
7902
+ this.selected.emit(option);
7903
+ this._input()?.nativeElement.focus({ preventScroll: true });
7904
+ }
7905
+ _key(event) {
7906
+ if (event.key === 'Enter' && this._expanded()) {
7907
+ const active = this._listbox()?.activeDescendant();
7908
+ const option = active ? this._document.getElementById(active) : null;
7909
+ const value = option?.dataset['value'];
7910
+ if (value !== undefined) {
7911
+ event.preventDefault();
7912
+ this._choose(value);
7913
+ }
7914
+ }
7915
+ else if (event.key === 'Escape' || event.key === 'Tab')
7916
+ this.close();
7917
+ }
7918
+ _outside(event) {
7919
+ const target = event.target;
7920
+ if (target &&
7921
+ !this._host.nativeElement.contains(target) &&
7922
+ !this._panel()?.nativeElement.contains(target))
7923
+ this.close();
7924
+ }
7925
+ _origin(above) {
7926
+ this._above = above;
7927
+ const panel = this._panel()?.nativeElement;
7928
+ if (panel)
7929
+ panel.style.transformOrigin = `${this.rtl() ? 'right' : 'left'} ${above ? 'bottom' : 'top'}`;
7930
+ }
7931
+ _scrollActiveIntoView() {
7932
+ const panel = this._panel()?.nativeElement;
7933
+ const activeId = this._listbox()?.activeDescendant();
7934
+ if (!panel || !activeId || !this._expanded())
7935
+ return;
7936
+ const option = this._document.getElementById(activeId);
7937
+ if (!option || !panel.contains(option))
7938
+ return;
7939
+ const top = option.offsetTop;
7940
+ const bottom = top + option.offsetHeight;
7941
+ if (top < panel.scrollTop)
7942
+ panel.scrollTop = top;
7943
+ else if (bottom > panel.scrollTop + panel.clientHeight)
7944
+ panel.scrollTop = bottom - panel.clientHeight;
7945
+ }
7946
+ _snapshotRows() {
7947
+ const panel = this._panel()?.nativeElement;
7948
+ const bounds = panel?.getBoundingClientRect();
7949
+ return {
7950
+ rows: snapshotMenuRects(this._rows()),
7951
+ scrollTop: panel?.scrollTop ?? 0,
7952
+ top: bounds?.top ?? 0,
7953
+ left: bounds?.left ?? 0,
7954
+ };
7955
+ }
7956
+ _rows() {
7957
+ return Array.from(this._panel()?.nativeElement.querySelectorAll('.mat-exp-autocomplete-row') ?? []);
7958
+ }
7959
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component });
7960
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpAutocomplete, isStandalone: true, selector: "mat-exp-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, emptyLabel: { classPropertyName: "emptyLabel", publicName: "emptyLabel", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, filterMotion: { classPropertyName: "filterMotion", publicName: "filterMotion", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, rtl: { classPropertyName: "rtl", publicName: "rtl", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", query: "queryChange", selected: "selected", opened: "opened", closed: "closed" }, host: { listeners: { "document:pointerdown": "_outside($event)", "document:pointerup": "_pressed.set(null)", "document:pointercancel": "_pressed.set(null)" } }, viewQueries: [{ propertyName: "_input", first: true, predicate: ["input"], descendants: true, isSignal: true }, { propertyName: "_originElement", first: true, predicate: ["origin"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "_panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "_listbox", first: true, predicate: ["listbox"], descendants: true, isSignal: true }, { propertyName: "_overlay", first: true, predicate: CdkConnectedOverlay, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"mat-exp-autocomplete-field\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ label() }}</mat-label>\n <input\n #input\n matInput\n ngCombobox\n #combobox=\"ngCombobox\"\n type=\"text\"\n autocomplete=\"off\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [value]=\"query()\"\n (valueChange)=\"_edit($event)\"\n [expanded]=\"_expanded()\"\n (expandedChange)=\"_expand($event)\"\n [preserveContent]=\"true\"\n (focus)=\"open()\"\n (click)=\"open()\"\n (keydown)=\"_key($event)\"\n />\n </mat-form-field>\n <ng-template ngComboboxPopup [combobox]=\"combobox\">\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"_present()\"\n [cdkConnectedOverlayPositions]=\"_positions\"\n [cdkConnectedOverlayWidth]=\"_popupWidth()\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n (positionChange)=\"_origin($event.connectionPair.overlayY === 'bottom')\"\n >\n <div\n #panel\n ngComboboxWidget\n ngListbox\n #listbox=\"ngListbox\"\n [activeDescendant]=\"listbox.activeDescendant()\"\n [value]=\"_selection()\"\n focusMode=\"activedescendant\"\n selectionMode=\"explicit\"\n [softDisabled]=\"false\"\n [class]=\"_classes()\"\n [attr.aria-label]=\"label() + ' suggestions'\"\n [attr.aria-hidden]=\"!_expanded() ? 'true' : null\"\n [attr.inert]=\"!_expanded() ? '' : null\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n >\n @for (option of _matches(); track option) {\n <!-- The input owns keyboard focus and activation through aria-activedescendant. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n ngOption\n matRipple\n [matRippleDisabled]=\"!motion()\"\n #item=\"ngOption\"\n [value]=\"option\"\n [label]=\"option\"\n [attr.data-value]=\"option\"\n class=\"mat-exp-autocomplete-option\"\n [class.mat-exp-autocomplete-selected]=\"value() === option\"\n [class.mat-exp-autocomplete-active]=\"item.active()\"\n [class.mat-exp-autocomplete-pressed]=\"_pressed() === option\"\n (pointerdown)=\"$event.button === 0 && !disabled() && _pressed.set(option)\"\n (mousedown)=\"$event.preventDefault()\"\n (pointerleave)=\"_pressed.set(null)\"\n (click)=\"_choose(option)\"\n >\n <span class=\"mat-exp-autocomplete-row\"\n ><span>{{ option }}</span>\n <mat-icon class=\"mat-exp-autocomplete-check\" aria-hidden=\"true\">{{\n value() === option ? 'check' : ''\n }}</mat-icon>\n </span>\n </div>\n } @empty {\n <div\n ngOption\n value=\"\"\n [label]=\"emptyLabel()\"\n disabled\n class=\"mat-exp-autocomplete-option\"\n >\n {{ emptyLabel() }}\n </div>\n }\n </div>\n </ng-template>\n </ng-template>\n</div>\n", styles: [".mat-exp-autocomplete-panel[role=listbox]{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-surface-container-low));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-surface));--city-selected: var( --mat-exp-menu-selected-container-color, var(--mat-sys-tertiary-container) );--city-on-selected: var( --mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary-container) );--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-surface));--city-target: 48px;--mat-autocomplete-container-shape: var(--mat-exp-menu-container-shape, 16px);--mat-autocomplete-background-color: var(--city-surface);--mat-autocomplete-container-elevation-shadow: var(--mat-exp-menu-elevation, var(--mat-sys-level2));--mat-option-label-text-color: var(--city-label);--mat-option-selected-state-label-text-color: var(--city-on-selected);--mat-option-selected-state-layer-color: transparent;--mat-option-hover-state-layer-color: transparent;--mat-option-focus-state-layer-color: transparent;--mat-option-label-text-font: var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));--mat-option-label-text-size: var(--mat-exp-menu-label-size, 14px);--mat-option-label-text-weight: var(--mat-exp-menu-label-weight, 500);--mat-option-label-text-line-height: var(--mat-exp-menu-label-line-height, 20px);--mat-option-label-text-tracking: var(--mat-exp-menu-label-tracking, .1px);border-radius:var(--mat-exp-menu-container-shape, 16px)!important;max-block-size:18rem;padding:2px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:auto;scrollbar-width:auto;scrollbar-color:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline)) var(--city-surface);clip-path:inset(0 round var(--mat-exp-menu-container-shape, 16px))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-panel-vibrant{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-tertiary-container));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-tertiary-container));--city-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary));--city-on-selected: var(--mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary));--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-tertiary-container))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-1{--city-target: 44px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-2{--city-target: 40px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-3{--city-target: 36px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-no-motion{animation:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option{--city-row-shape: var(--mat-exp-menu-item-shape, 4px);--city-row-state: var(--city-state);position:relative;isolation:isolate;min-block-size:var(--city-target);padding-inline:16px;border-radius:var(--city-row-shape);background:transparent}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:first-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:last-child{--city-row-shape: var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:only-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:before,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:after{content:\"\";position:absolute;inset:2px 0;z-index:-1;border-radius:var(--city-row-shape);pointer-events:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):hover:after{background:color-mix(in srgb,var(--city-row-state) 8%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active:after,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):active:after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{--city-row-shape: var(--mat-exp-menu-selected-shape, 12px);--city-row-state: var(--city-on-selected);color:var(--city-on-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:var(--city-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active{outline:var(--mat-exp-menu-focus-width, 3px) solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:var(--mat-exp-menu-focus-offset, -3px)}@supports selector(::-webkit-scrollbar){.mat-exp-autocomplete-panel[role=listbox]{scrollbar-color:auto;scrollbar-width:auto}}.mat-exp-autocomplete-panel::-webkit-scrollbar{width:var(--mat-exp-menu-scrollbar-width, 12px)}.mat-exp-autocomplete-panel::-webkit-scrollbar-button{display:none}.mat-exp-autocomplete-panel::-webkit-scrollbar-track{margin-block:4px;background:var(--city-surface)}.mat-exp-autocomplete-panel::-webkit-scrollbar-thumb{border:3px solid var(--city-surface);border-radius:12px;background:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline))}.mat-exp-autocomplete-row{display:flex;align-items:center;justify-content:space-between;gap:12px;inline-size:100%}.mat-exp-autocomplete-check{inline-size:20px;block-size:20px;font-size:20px;line-height:20px;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-autocomplete-panel[role=listbox]{animation:none}}@media(forced-colors:active){.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-active{outline-color:Highlight}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:SelectedItemText}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:SelectedItem;forced-color-adjust:none}}mat-exp-autocomplete{display:block}.mat-exp-autocomplete-field{inline-size:min(100%,22rem)}.mat-exp-autocomplete-field mat-form-field{inline-size:100%}.mat-exp-autocomplete-surface{box-sizing:border-box;inline-size:100%;background:var(--city-surface);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2));transform-origin:left top}.mat-exp-autocomplete-surface .mat-exp-autocomplete-option{box-sizing:border-box;display:flex;align-items:center;overflow:hidden;cursor:pointer;color:var(--city-label);font-family:var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));font-size:var(--mat-exp-menu-label-size, 14px);font-weight:var(--mat-exp-menu-label-weight, 500);line-height:var(--mat-exp-menu-label-line-height, 20px);letter-spacing:var(--mat-exp-menu-label-tracking, .1px)}.mat-exp-autocomplete-surface .mat-exp-autocomplete-option[aria-disabled=true]{cursor:default;opacity:.38}.mat-exp-autocomplete-surface .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:var(--city-on-selected)}.mat-exp-autocomplete-surface.mat-exp-autocomplete-panel[role=listbox]{clip-path:none}.mat-exp-autocomplete-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-pressed:not([aria-disabled=true]):after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}\n"], dependencies: [{ kind: "directive", type: Combobox, selector: "[ngCombobox]", inputs: ["disabled", "readonly", "softDisabled", "alwaysExpanded", "tabindex", "expanded", "value", "inlineSuggestion"], outputs: ["expandedChange", "valueChange"], exportAs: ["ngCombobox"] }, { kind: "directive", type: ComboboxPopup, selector: "ng-template[ngComboboxPopup]", inputs: ["combobox", "popupType"], exportAs: ["ngComboboxPopup"] }, { kind: "directive", type: ComboboxWidget, selector: "[ngComboboxWidget]", inputs: ["activeDescendant"], exportAs: ["ngComboboxWidget"] }, { kind: "directive", type: Listbox, selector: "[ngListbox]", inputs: ["id", "orientation", "multi", "wrap", "softDisabled", "focusMode", "selectionMode", "typeaheadDelay", "disabled", "readonly", "tabindex", "value"], outputs: ["valueChange"], exportAs: ["ngListbox"] }, { kind: "directive", type: Option, selector: "[ngOption]", inputs: ["id", "value", "disabled", "label"], exportAs: ["ngOption"] }, { kind: "directive", type: Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { 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", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7961
+ }
7962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpAutocomplete, decorators: [{
7963
+ type: Component,
7964
+ args: [{ selector: 'mat-exp-autocomplete', imports: [
7965
+ Combobox,
7966
+ ComboboxPopup,
7967
+ ComboboxWidget,
7968
+ Listbox,
7969
+ Option,
7970
+ Dir,
7971
+ CdkConnectedOverlay,
7972
+ CdkOverlayOrigin,
7973
+ MatFormField,
7974
+ MatLabel,
7975
+ MatInput,
7976
+ MatIcon,
7977
+ MatRipple,
7978
+ ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
7979
+ '(document:pointerdown)': '_outside($event)',
7980
+ '(document:pointerup)': '_pressed.set(null)',
7981
+ '(document:pointercancel)': '_pressed.set(null)',
7982
+ }, template: "<div\n class=\"mat-exp-autocomplete-field\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n>\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ label() }}</mat-label>\n <input\n #input\n matInput\n ngCombobox\n #combobox=\"ngCombobox\"\n type=\"text\"\n autocomplete=\"off\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [value]=\"query()\"\n (valueChange)=\"_edit($event)\"\n [expanded]=\"_expanded()\"\n (expandedChange)=\"_expand($event)\"\n [preserveContent]=\"true\"\n (focus)=\"open()\"\n (click)=\"open()\"\n (keydown)=\"_key($event)\"\n />\n </mat-form-field>\n <ng-template ngComboboxPopup [combobox]=\"combobox\">\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"_present()\"\n [cdkConnectedOverlayPositions]=\"_positions\"\n [cdkConnectedOverlayWidth]=\"_popupWidth()\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n (positionChange)=\"_origin($event.connectionPair.overlayY === 'bottom')\"\n >\n <div\n #panel\n ngComboboxWidget\n ngListbox\n #listbox=\"ngListbox\"\n [activeDescendant]=\"listbox.activeDescendant()\"\n [value]=\"_selection()\"\n focusMode=\"activedescendant\"\n selectionMode=\"explicit\"\n [softDisabled]=\"false\"\n [class]=\"_classes()\"\n [attr.aria-label]=\"label() + ' suggestions'\"\n [attr.aria-hidden]=\"!_expanded() ? 'true' : null\"\n [attr.inert]=\"!_expanded() ? '' : null\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n >\n @for (option of _matches(); track option) {\n <!-- The input owns keyboard focus and activation through aria-activedescendant. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div\n ngOption\n matRipple\n [matRippleDisabled]=\"!motion()\"\n #item=\"ngOption\"\n [value]=\"option\"\n [label]=\"option\"\n [attr.data-value]=\"option\"\n class=\"mat-exp-autocomplete-option\"\n [class.mat-exp-autocomplete-selected]=\"value() === option\"\n [class.mat-exp-autocomplete-active]=\"item.active()\"\n [class.mat-exp-autocomplete-pressed]=\"_pressed() === option\"\n (pointerdown)=\"$event.button === 0 && !disabled() && _pressed.set(option)\"\n (mousedown)=\"$event.preventDefault()\"\n (pointerleave)=\"_pressed.set(null)\"\n (click)=\"_choose(option)\"\n >\n <span class=\"mat-exp-autocomplete-row\"\n ><span>{{ option }}</span>\n <mat-icon class=\"mat-exp-autocomplete-check\" aria-hidden=\"true\">{{\n value() === option ? 'check' : ''\n }}</mat-icon>\n </span>\n </div>\n } @empty {\n <div\n ngOption\n value=\"\"\n [label]=\"emptyLabel()\"\n disabled\n class=\"mat-exp-autocomplete-option\"\n >\n {{ emptyLabel() }}\n </div>\n }\n </div>\n </ng-template>\n </ng-template>\n</div>\n", styles: [".mat-exp-autocomplete-panel[role=listbox]{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-surface-container-low));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-surface));--city-selected: var( --mat-exp-menu-selected-container-color, var(--mat-sys-tertiary-container) );--city-on-selected: var( --mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary-container) );--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-surface));--city-target: 48px;--mat-autocomplete-container-shape: var(--mat-exp-menu-container-shape, 16px);--mat-autocomplete-background-color: var(--city-surface);--mat-autocomplete-container-elevation-shadow: var(--mat-exp-menu-elevation, var(--mat-sys-level2));--mat-option-label-text-color: var(--city-label);--mat-option-selected-state-label-text-color: var(--city-on-selected);--mat-option-selected-state-layer-color: transparent;--mat-option-hover-state-layer-color: transparent;--mat-option-focus-state-layer-color: transparent;--mat-option-label-text-font: var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));--mat-option-label-text-size: var(--mat-exp-menu-label-size, 14px);--mat-option-label-text-weight: var(--mat-exp-menu-label-weight, 500);--mat-option-label-text-line-height: var(--mat-exp-menu-label-line-height, 20px);--mat-option-label-text-tracking: var(--mat-exp-menu-label-tracking, .1px);border-radius:var(--mat-exp-menu-container-shape, 16px)!important;max-block-size:18rem;padding:2px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:auto;scrollbar-width:auto;scrollbar-color:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline)) var(--city-surface);clip-path:inset(0 round var(--mat-exp-menu-container-shape, 16px))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-panel-vibrant{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-tertiary-container));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-tertiary-container));--city-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary));--city-on-selected: var(--mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary));--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-tertiary-container))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-1{--city-target: 44px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-2{--city-target: 40px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-3{--city-target: 36px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-no-motion{animation:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option{--city-row-shape: var(--mat-exp-menu-item-shape, 4px);--city-row-state: var(--city-state);position:relative;isolation:isolate;min-block-size:var(--city-target);padding-inline:16px;border-radius:var(--city-row-shape);background:transparent}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:first-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:last-child{--city-row-shape: var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:only-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:before,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:after{content:\"\";position:absolute;inset:2px 0;z-index:-1;border-radius:var(--city-row-shape);pointer-events:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):hover:after{background:color-mix(in srgb,var(--city-row-state) 8%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active:after,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):active:after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{--city-row-shape: var(--mat-exp-menu-selected-shape, 12px);--city-row-state: var(--city-on-selected);color:var(--city-on-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:var(--city-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active{outline:var(--mat-exp-menu-focus-width, 3px) solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:var(--mat-exp-menu-focus-offset, -3px)}@supports selector(::-webkit-scrollbar){.mat-exp-autocomplete-panel[role=listbox]{scrollbar-color:auto;scrollbar-width:auto}}.mat-exp-autocomplete-panel::-webkit-scrollbar{width:var(--mat-exp-menu-scrollbar-width, 12px)}.mat-exp-autocomplete-panel::-webkit-scrollbar-button{display:none}.mat-exp-autocomplete-panel::-webkit-scrollbar-track{margin-block:4px;background:var(--city-surface)}.mat-exp-autocomplete-panel::-webkit-scrollbar-thumb{border:3px solid var(--city-surface);border-radius:12px;background:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline))}.mat-exp-autocomplete-row{display:flex;align-items:center;justify-content:space-between;gap:12px;inline-size:100%}.mat-exp-autocomplete-check{inline-size:20px;block-size:20px;font-size:20px;line-height:20px;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-autocomplete-panel[role=listbox]{animation:none}}@media(forced-colors:active){.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-active{outline-color:Highlight}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:SelectedItemText}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:SelectedItem;forced-color-adjust:none}}mat-exp-autocomplete{display:block}.mat-exp-autocomplete-field{inline-size:min(100%,22rem)}.mat-exp-autocomplete-field mat-form-field{inline-size:100%}.mat-exp-autocomplete-surface{box-sizing:border-box;inline-size:100%;background:var(--city-surface);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2));transform-origin:left top}.mat-exp-autocomplete-surface .mat-exp-autocomplete-option{box-sizing:border-box;display:flex;align-items:center;overflow:hidden;cursor:pointer;color:var(--city-label);font-family:var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));font-size:var(--mat-exp-menu-label-size, 14px);font-weight:var(--mat-exp-menu-label-weight, 500);line-height:var(--mat-exp-menu-label-line-height, 20px);letter-spacing:var(--mat-exp-menu-label-tracking, .1px)}.mat-exp-autocomplete-surface .mat-exp-autocomplete-option[aria-disabled=true]{cursor:default;opacity:.38}.mat-exp-autocomplete-surface .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:var(--city-on-selected)}.mat-exp-autocomplete-surface.mat-exp-autocomplete-panel[role=listbox]{clip-path:none}.mat-exp-autocomplete-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-pressed:not([aria-disabled=true]):after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}\n"] }]
7983
+ }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], emptyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyLabel", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], filterMotion: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMotion", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], rtl: [{ type: i0.Input, args: [{ isSignal: true, alias: "rtl", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], selected: [{ type: i0.Output, args: ["selected"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], _input: [{ type: i0.ViewChild, args: ['input', { isSignal: true }] }], _originElement: [{ type: i0.ViewChild, args: ['origin', { ...{
7984
+ read: (ElementRef),
7985
+ }, isSignal: true }] }], _panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], _listbox: [{ type: i0.ViewChild, args: ['listbox', { isSignal: true }] }], _overlay: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkConnectedOverlay), { isSignal: true }] }] } });
7986
+
7987
+ /** Fixed single/multiple choice with Angular forms integration and an Expressive popup. */
7988
+ class MatExpSelect {
7989
+ options = input([], /* @ts-ignore */
7990
+ ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
7991
+ multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
7992
+ label = input('Choose an option', /* @ts-ignore */
7993
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
7994
+ placeholder = input('Select an option', /* @ts-ignore */
7995
+ ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
7996
+ emptyLabel = input('No options available', /* @ts-ignore */
7997
+ ...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
7998
+ color = input('standard', /* @ts-ignore */
7999
+ ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
8000
+ density = input(0, /* @ts-ignore */
8001
+ ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
8002
+ motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8003
+ /** Popup spatial spring. Off settles immediately; reduced motion always takes precedence. */
8004
+ popupMotion = input('fast', /* @ts-ignore */
8005
+ ...(ngDevMode ? [{ debugName: "popupMotion" }] : /* istanbul ignore next */ []));
8006
+ rtl = input(false, { ...(ngDevMode ? { debugName: "rtl" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8007
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8008
+ /** Accessible required state. Apply Angular Validators.required for form validation. */
8009
+ required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
8010
+ compareWith = input(Object.is, /* @ts-ignore */
8011
+ ...(ngDevMode ? [{ debugName: "compareWith" }] : /* istanbul ignore next */ []));
8012
+ valueChange = output();
8013
+ /** Emitted once when a user interaction changes the confirmed selection. */
8014
+ selectionChange = output();
8015
+ opened = output();
8016
+ /** Emitted after the popup's exit completes. */
8017
+ closed = output();
8018
+ _value = signal(null, /* @ts-ignore */
8019
+ ...(ngDevMode ? [{ debugName: "_value" }] : /* istanbul ignore next */ []));
8020
+ /** Two-way selection. Use a scalar for single mode, an array for multiple mode. */
8021
+ get value() {
8022
+ return this._value();
8023
+ }
8024
+ set value(value) {
8025
+ this._value.set(value);
8026
+ }
8027
+ _expanded = signal(false, /* @ts-ignore */
8028
+ ...(ngDevMode ? [{ debugName: "_expanded" }] : /* istanbul ignore next */ []));
8029
+ _present = signal(false, /* @ts-ignore */
8030
+ ...(ngDevMode ? [{ debugName: "_present" }] : /* istanbul ignore next */ []));
8031
+ _pressed = signal(null, /* @ts-ignore */
8032
+ ...(ngDevMode ? [{ debugName: "_pressed" }] : /* istanbul ignore next */ []));
8033
+ _formDisabled = signal(false, /* @ts-ignore */
8034
+ ...(ngDevMode ? [{ debugName: "_formDisabled" }] : /* istanbul ignore next */ []));
8035
+ _disabled = computed(() => this.disabled() || this._formDisabled(), /* @ts-ignore */
8036
+ ...(ngDevMode ? [{ debugName: "_disabled" }] : /* istanbul ignore next */ []));
8037
+ _closingOptions = signal(null, /* @ts-ignore */
8038
+ ...(ngDevMode ? [{ debugName: "_closingOptions" }] : /* istanbul ignore next */ []));
8039
+ _renderedOptions = computed(() => this._closingOptions() ?? this.options(), /* @ts-ignore */
8040
+ ...(ngDevMode ? [{ debugName: "_renderedOptions" }] : /* istanbul ignore next */ []));
8041
+ _indices = computed(() => {
8042
+ const value = this._value();
8043
+ const selected = this.multiple()
8044
+ ? Array.isArray(value)
8045
+ ? value
8046
+ : []
8047
+ : value === null
8048
+ ? []
8049
+ : [value];
8050
+ return this._renderedOptions().flatMap((option, index) => selected.some((item) => this.compareWith()(option.value, item)) ? [index] : []);
8051
+ }, /* @ts-ignore */
8052
+ ...(ngDevMode ? [{ debugName: "_indices" }] : /* istanbul ignore next */ []));
8053
+ _display = computed(() => {
8054
+ const value = this._value();
8055
+ const selected = this.multiple()
8056
+ ? Array.isArray(value)
8057
+ ? value
8058
+ : []
8059
+ : value === null
8060
+ ? []
8061
+ : [value];
8062
+ return this.options()
8063
+ .filter((option) => selected.some((item) => this.compareWith()(option.value, item)))
8064
+ .map((option) => option.label)
8065
+ .join(', ');
8066
+ }, /* @ts-ignore */
8067
+ ...(ngDevMode ? [{ debugName: "_display" }] : /* istanbul ignore next */ []));
8068
+ _classes = computed(() => [
8069
+ 'mat-exp-select-surface',
8070
+ 'mat-exp-autocomplete-panel',
8071
+ `mat-exp-autocomplete-panel-${this.color()}`,
8072
+ `mat-exp-autocomplete-density${this.density()}`,
8073
+ ].join(' '), /* @ts-ignore */
8074
+ ...(ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []));
8075
+ _positions = [
8076
+ { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top' },
8077
+ { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },
8078
+ ];
8079
+ _document = inject(DOCUMENT);
8080
+ _host = inject(ElementRef);
8081
+ _destroy = inject(DestroyRef);
8082
+ _changeDetector = inject(ChangeDetectorRef);
8083
+ _trigger = viewChild('trigger', /* @ts-ignore */
8084
+ ...(ngDevMode ? [{ debugName: "_trigger" }] : /* istanbul ignore next */ []));
8085
+ _originElement = viewChild('origin', { ...(ngDevMode ? { debugName: "_originElement" } : /* istanbul ignore next */ {}), read: (ElementRef) });
8086
+ _popupWidth = injectOriginWidth(this._originElement);
8087
+ _panel = viewChild('panel', /* @ts-ignore */
8088
+ ...(ngDevMode ? [{ debugName: "_panel" }] : /* istanbul ignore next */ []));
8089
+ _surface = viewChild('surface', /* @ts-ignore */
8090
+ ...(ngDevMode ? [{ debugName: "_surface" }] : /* istanbul ignore next */ []));
8091
+ _listbox = viewChild('listbox', /* @ts-ignore */
8092
+ ...(ngDevMode ? [{ debugName: "_listbox" }] : /* istanbul ignore next */ []));
8093
+ _overlay = viewChild(CdkConnectedOverlay, /* @ts-ignore */
8094
+ ...(ngDevMode ? [{ debugName: "_overlay" }] : /* istanbul ignore next */ []));
8095
+ _motion;
8096
+ _motionSurface;
8097
+ _removeListeners;
8098
+ _lastOpen;
8099
+ _lastAnimate;
8100
+ _lastPopupMotion;
8101
+ _above = false;
8102
+ _initial;
8103
+ _pendingKey;
8104
+ _typeaheadUntil = 0;
8105
+ _userEvent = 0;
8106
+ _pendingValues;
8107
+ _onChange = () => {
8108
+ /* Forms callbacks are optional until registered. */
8109
+ };
8110
+ _onTouched = () => {
8111
+ /* Forms callbacks are optional until registered. */
8112
+ };
8113
+ constructor() {
8114
+ afterRenderEffect(() => {
8115
+ const panel = this._panel()?.nativeElement;
8116
+ const surface = this._surface()?.nativeElement;
8117
+ const open = this._expanded();
8118
+ const popupMotion = this.popupMotion();
8119
+ const animate = this.motion() && popupMotion !== 'off';
8120
+ if (this._disabled() && open)
8121
+ this.close();
8122
+ if (surface !== this._motionSurface) {
8123
+ this._removeListeners?.();
8124
+ this._motion?.destroy();
8125
+ this._motion = undefined;
8126
+ this._motionSurface = surface;
8127
+ this._lastOpen = undefined;
8128
+ if (panel && surface && this._document.defaultView) {
8129
+ this._motion = createMenuMotion(surface, this._document.defaultView.matchMedia('(prefers-reduced-motion: reduce)'));
8130
+ const capture = (event) => this._capture(event);
8131
+ const finish = () => this._finishSelection();
8132
+ const resize = typeof ResizeObserver === 'undefined'
8133
+ ? undefined
8134
+ : new ResizeObserver(() => this._scrollActiveIntoView());
8135
+ resize?.observe(panel);
8136
+ panel.addEventListener('keydown', finish);
8137
+ panel.addEventListener('click', finish);
8138
+ panel.addEventListener('keydown', capture, true);
8139
+ panel.addEventListener('click', capture, true);
8140
+ this._removeListeners = () => {
8141
+ resize?.disconnect();
8142
+ panel.removeEventListener('keydown', finish);
8143
+ panel.removeEventListener('click', finish);
8144
+ panel.removeEventListener('keydown', capture, true);
8145
+ panel.removeEventListener('click', capture, true);
8146
+ };
8147
+ }
8148
+ }
8149
+ if (surface)
8150
+ surface.style.transformOrigin = `${this.rtl() ? 'right' : 'left'} ${this._above ? 'bottom' : 'top'}`;
8151
+ if (this._motion &&
8152
+ (open !== this._lastOpen ||
8153
+ animate !== this._lastAnimate ||
8154
+ popupMotion !== this._lastPopupMotion)) {
8155
+ this._lastOpen = open;
8156
+ this._lastAnimate = animate;
8157
+ this._lastPopupMotion = popupMotion;
8158
+ this._motion.setOpen(open, animate, open
8159
+ ? undefined
8160
+ : () => {
8161
+ if (!this._expanded() && !this._destroy.destroyed) {
8162
+ this._present.set(false);
8163
+ this.closed.emit();
8164
+ }
8165
+ }, popupMotion === 'standard' ? DEFAULT_SPATIAL_SPRING : FAST_SPATIAL_SPRING);
8166
+ }
8167
+ if (open && this._listbox()) {
8168
+ if (this._initial) {
8169
+ const options = this._renderedOptions();
8170
+ const candidates = options.flatMap((option, index) => (option.disabled ? [] : [index]));
8171
+ const selected = this._indices().find((index) => !options[index]?.disabled);
8172
+ const index = selected ?? (this._initial === 'last' ? candidates.at(-1) : candidates[0]);
8173
+ if (index !== undefined)
8174
+ this._listbox().gotoIndex(index);
8175
+ this._initial = undefined;
8176
+ }
8177
+ if (this._pendingKey) {
8178
+ panel?.dispatchEvent(new KeyboardEvent('keydown', this._pendingKey));
8179
+ this._pendingKey = undefined;
8180
+ }
8181
+ }
8182
+ });
8183
+ afterRenderEffect(() => {
8184
+ this._popupWidth();
8185
+ this._panel();
8186
+ this._listbox()?.activeDescendant();
8187
+ this.options();
8188
+ this._expanded();
8189
+ this._overlay()?.overlayRef?.updatePosition();
8190
+ this._scrollActiveIntoView();
8191
+ });
8192
+ this._destroy.onDestroy(() => {
8193
+ this._removeListeners?.();
8194
+ this._motion?.destroy();
8195
+ });
8196
+ }
8197
+ get isOpen() {
8198
+ return this._expanded();
8199
+ }
8200
+ open() {
8201
+ if (this._disabled())
8202
+ return;
8203
+ const wasOpen = this._expanded();
8204
+ this._closingOptions.set(null);
8205
+ this._present.set(true);
8206
+ this._expanded.set(true);
8207
+ this.focus();
8208
+ if (!wasOpen) {
8209
+ this._initial ??= 'first';
8210
+ this._typeaheadUntil = 0;
8211
+ this.opened.emit();
8212
+ }
8213
+ }
8214
+ close() {
8215
+ if (this._expanded())
8216
+ this._closingOptions.set(this.options());
8217
+ this._expanded.set(false);
8218
+ this._pressed.set(null);
8219
+ }
8220
+ focus() {
8221
+ if (!this._disabled())
8222
+ this._trigger()?.nativeElement.focus({ preventScroll: true });
8223
+ }
8224
+ writeValue(value) {
8225
+ this._value.set(value ?? null);
8226
+ this._changeDetector.markForCheck();
8227
+ }
8228
+ registerOnChange(fn) {
8229
+ this._onChange = fn;
8230
+ }
8231
+ registerOnTouched(fn) {
8232
+ this._onTouched = fn;
8233
+ }
8234
+ setDisabledState(disabled) {
8235
+ this._formDisabled.set(disabled);
8236
+ this._changeDetector.markForCheck();
8237
+ }
8238
+ _expand(open) {
8239
+ if (open)
8240
+ this.open();
8241
+ else
8242
+ this.close();
8243
+ }
8244
+ _key(event) {
8245
+ if (this._disabled() || event.isComposing || event.altKey || event.ctrlKey || event.metaKey)
8246
+ return;
8247
+ if (event.key === 'Escape' || event.key === 'Tab') {
8248
+ this.close();
8249
+ return;
8250
+ }
8251
+ if (!this._expanded() && !event.repeat) {
8252
+ if (event.key === 'ArrowUp' || event.key === 'Home' || event.key === 'End') {
8253
+ event.preventDefault();
8254
+ this._initial = event.key === 'Home' ? 'first' : 'last';
8255
+ this.open();
8256
+ }
8257
+ else if (event.key.length === 1 && event.key !== ' ') {
8258
+ event.preventDefault();
8259
+ this._pendingKey = event;
8260
+ this.open();
8261
+ }
8262
+ }
8263
+ }
8264
+ _blur() {
8265
+ queueMicrotask(() => {
8266
+ if (this._destroy.destroyed)
8267
+ return;
8268
+ const active = this._document.activeElement;
8269
+ if (!this._host.nativeElement.contains(active) &&
8270
+ !this._panel()?.nativeElement.contains(active)) {
8271
+ this.close();
8272
+ this._onTouched();
8273
+ this._changeDetector.markForCheck();
8274
+ }
8275
+ });
8276
+ }
8277
+ _outside(event) {
8278
+ const target = event.target;
8279
+ if (target &&
8280
+ !this._host.nativeElement.contains(target) &&
8281
+ !this._panel()?.nativeElement.contains(target))
8282
+ this.close();
8283
+ }
8284
+ _press(index) {
8285
+ if (!this._disabled() && !this._renderedOptions()[index]?.disabled)
8286
+ this._pressed.set(index);
8287
+ }
8288
+ _release() {
8289
+ this._pressed.set(null);
8290
+ }
8291
+ _listValueChanged(value) {
8292
+ // Aria also reconciles values when options disappear. Only a real event
8293
+ // transaction may notify forms; one range/select-all event emits once.
8294
+ if (this._userEvent)
8295
+ this._pendingValues = value;
8296
+ }
8297
+ _origin(above) {
8298
+ this._above = above;
8299
+ const surface = this._surface()?.nativeElement;
8300
+ if (surface)
8301
+ surface.style.transformOrigin = `${this.rtl() ? 'right' : 'left'} ${above ? 'bottom' : 'top'}`;
8302
+ }
8303
+ _capture(event) {
8304
+ if (!this._expanded() || this._disabled() || ('isComposing' in event && event.isComposing)) {
8305
+ event.preventDefault();
8306
+ event.stopImmediatePropagation();
8307
+ return;
8308
+ }
8309
+ if (!this.multiple()) {
8310
+ let index;
8311
+ if (event.type === 'click') {
8312
+ const option = event.target.closest('[data-option-index]');
8313
+ if (option)
8314
+ index = Number(option.dataset['optionIndex']);
8315
+ }
8316
+ else {
8317
+ const key = event;
8318
+ const ordinary = !key.altKey && !key.ctrlKey && !key.metaKey && !key.shiftKey && !key.repeat;
8319
+ const typing = Date.now() < this._typeaheadUntil;
8320
+ if (ordinary && (key.key === 'Enter' || (key.key === ' ' && !typing))) {
8321
+ const active = this._listbox()?.activeDescendant();
8322
+ const option = active ? this._document.getElementById(active) : null;
8323
+ if (option?.dataset['optionIndex'] !== undefined)
8324
+ index = Number(option.dataset['optionIndex']);
8325
+ }
8326
+ else if (ordinary && key.key.length === 1)
8327
+ this._typeaheadUntil = Date.now() + (this._listbox()?.typeaheadDelay() ?? 500);
8328
+ }
8329
+ if (index !== undefined) {
8330
+ event.preventDefault();
8331
+ event.stopImmediatePropagation();
8332
+ const option = this._renderedOptions()[index];
8333
+ if (option && !option.disabled) {
8334
+ this._commit(option.value);
8335
+ this.close();
8336
+ this.focus();
8337
+ }
8338
+ }
8339
+ return;
8340
+ }
8341
+ this._userEvent++;
8342
+ this._pendingValues = undefined;
8343
+ }
8344
+ _finishSelection() {
8345
+ // A browser can checkpoint microtasks between capture and bubble listeners.
8346
+ // Finish in a later bubble listener instead, after Aria emits all changes for
8347
+ // this event (including select-all), but before any asynchronous reconciliation.
8348
+ if (!this._userEvent)
8349
+ return;
8350
+ const selected = this._pendingValues;
8351
+ this._userEvent = 0;
8352
+ this._pendingValues = undefined;
8353
+ if (selected && this._expanded() && !this._disabled()) {
8354
+ const options = this._renderedOptions();
8355
+ this._commit([...selected]
8356
+ .sort((a, b) => a - b)
8357
+ .flatMap((index) => (options[index] ? [options[index].value] : [])));
8358
+ }
8359
+ }
8360
+ _scrollActiveIntoView() {
8361
+ const panel = this._panel()?.nativeElement;
8362
+ const activeId = this._listbox()?.activeDescendant();
8363
+ if (!panel || !activeId || !this._expanded())
8364
+ return;
8365
+ const option = this._document.getElementById(activeId);
8366
+ if (!option || !panel.contains(option) || !panel.clientHeight)
8367
+ return;
8368
+ // Rect differences remain correct regardless of the option's offset parent.
8369
+ // Divide out the shared entrance scale before writing layout scroll pixels.
8370
+ const panelRect = panel.getBoundingClientRect();
8371
+ const optionRect = option.getBoundingClientRect();
8372
+ const scale = panel.offsetHeight ? panelRect.height / panel.offsetHeight : 1;
8373
+ if (!scale)
8374
+ return;
8375
+ const top = (optionRect.top - panelRect.top) / scale - panel.clientTop;
8376
+ const bottom = top + optionRect.height / scale;
8377
+ if (top < 0)
8378
+ panel.scrollTop += top;
8379
+ else if (bottom > panel.clientHeight)
8380
+ panel.scrollTop += bottom - panel.clientHeight;
8381
+ // Overlay attachment can initially constrain the panel to a few pixels.
8382
+ // Its ResizeObserver repeats this measurement once final bounds are applied.
8383
+ }
8384
+ _commit(next) {
8385
+ const previous = this._value();
8386
+ const compare = this.compareWith();
8387
+ const same = this.multiple()
8388
+ ? Array.isArray(previous) &&
8389
+ Array.isArray(next) &&
8390
+ previous.length === next.length &&
8391
+ previous.every((item, index) => compare(item, next[index]))
8392
+ : previous === null || next === null
8393
+ ? previous === next
8394
+ : compare(previous, next);
8395
+ if (same)
8396
+ return;
8397
+ this._value.set(next);
8398
+ this._onChange(next);
8399
+ this.valueChange.emit(next);
8400
+ this.selectionChange.emit(next);
8401
+ // Native capture and Aria's deferred keyboard relay do not mark the
8402
+ // consumer template that displays its non-signal FormControl value.
8403
+ this._changeDetector.markForCheck();
8404
+ }
8405
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
8406
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.3", type: MatExpSelect, isStandalone: true, selector: "mat-exp-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, emptyLabel: { classPropertyName: "emptyLabel", publicName: "emptyLabel", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, popupMotion: { classPropertyName: "popupMotion", publicName: "popupMotion", isSignal: true, isRequired: false, transformFunction: null }, rtl: { classPropertyName: "rtl", publicName: "rtl", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, compareWith: { classPropertyName: "compareWith", publicName: "compareWith", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", selectionChange: "selectionChange", opened: "opened", closed: "closed" }, host: { listeners: { "document:pointerdown": "_outside($event)", "document:pointerup": "_release()", "document:pointercancel": "_release()" } }, providers: [
8407
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MatExpSelect), multi: true },
8408
+ ], viewQueries: [{ propertyName: "_trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "_originElement", first: true, predicate: ["origin"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "_panel", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "_surface", first: true, predicate: ["surface"], descendants: true, isSignal: true }, { propertyName: "_listbox", first: true, predicate: ["listbox"], descendants: true, isSignal: true }, { propertyName: "_overlay", first: true, predicate: CdkConnectedOverlay, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"mat-exp-select-field\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n>\n <span class=\"mat-exp-select-label\"\n >{{ label() }}\n @if (required()) {\n <span aria-hidden=\"true\"> *</span>\n }\n </span>\n <div\n #trigger\n ngCombobox\n #combobox=\"ngCombobox\"\n class=\"mat-exp-select-trigger\"\n [disabled]=\"_disabled()\"\n [softDisabled]=\"false\"\n [expanded]=\"_expanded()\"\n (expandedChange)=\"_expand($event)\"\n [preserveContent]=\"true\"\n [attr.aria-label]=\"label()\"\n [attr.aria-autocomplete]=\"'none'\"\n [attr.aria-required]=\"required()\"\n (keydown)=\"_key($event)\"\n (focusout)=\"_blur()\"\n >\n <span class=\"mat-exp-select-value\" [class.mat-exp-select-placeholder]=\"!_display()\">{{\n _display() || placeholder()\n }}</span>\n <mat-icon aria-hidden=\"true\">{{ _expanded() ? 'arrow_drop_up' : 'arrow_drop_down' }}</mat-icon>\n </div>\n <ng-template ngComboboxPopup [combobox]=\"combobox\">\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"_present()\"\n [cdkConnectedOverlayPositions]=\"_positions\"\n [cdkConnectedOverlayWidth]=\"_popupWidth()\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n (positionChange)=\"_origin($event.connectionPair.overlayY === 'bottom')\"\n >\n <div #surface class=\"mat-exp-select-popup\">\n <div\n #panel\n ngComboboxWidget\n ngListbox\n #listbox=\"ngListbox\"\n [activeDescendant]=\"listbox.activeDescendant()\"\n [value]=\"_indices()\"\n (valueChange)=\"_listValueChanged($event)\"\n [multi]=\"multiple()\"\n [softDisabled]=\"false\"\n focusMode=\"activedescendant\"\n selectionMode=\"explicit\"\n [class]=\"_classes()\"\n [attr.aria-label]=\"label() + ' options'\"\n [attr.aria-hidden]=\"!_expanded() ? 'true' : null\"\n [attr.inert]=\"!_expanded() ? '' : null\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n >\n @for (option of _renderedOptions(); track $index; let index = $index) {\n <div\n ngOption\n matRipple\n #item=\"ngOption\"\n [value]=\"index\"\n [label]=\"option.label\"\n [disabled]=\"!!option.disabled\"\n [attr.data-option-index]=\"index\"\n [matRippleDisabled]=\"!motion() || !!option.disabled\"\n class=\"mat-exp-autocomplete-option\"\n [class.mat-exp-autocomplete-selected]=\"_indices().includes(index)\"\n [class.mat-exp-autocomplete-active]=\"item.active()\"\n [class.mat-exp-select-pressed]=\"_pressed() === index\"\n (pointerdown)=\"_press(index)\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <span class=\"mat-exp-autocomplete-row\"\n ><span>{{ option.label }}</span>\n <mat-icon class=\"mat-exp-autocomplete-check\" aria-hidden=\"true\">{{\n _indices().includes(index) ? 'check' : ''\n }}</mat-icon>\n </span>\n </div>\n } @empty {\n <div\n ngOption\n [value]=\"-1\"\n [label]=\"emptyLabel()\"\n disabled\n class=\"mat-exp-autocomplete-option\"\n >\n {{ emptyLabel() }}\n </div>\n }\n </div>\n </div>\n </ng-template>\n </ng-template>\n</div>\n", styles: [".mat-exp-autocomplete-panel[role=listbox]{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-surface-container-low));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-surface));--city-selected: var( --mat-exp-menu-selected-container-color, var(--mat-sys-tertiary-container) );--city-on-selected: var( --mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary-container) );--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-surface));--city-target: 48px;--mat-autocomplete-container-shape: var(--mat-exp-menu-container-shape, 16px);--mat-autocomplete-background-color: var(--city-surface);--mat-autocomplete-container-elevation-shadow: var(--mat-exp-menu-elevation, var(--mat-sys-level2));--mat-option-label-text-color: var(--city-label);--mat-option-selected-state-label-text-color: var(--city-on-selected);--mat-option-selected-state-layer-color: transparent;--mat-option-hover-state-layer-color: transparent;--mat-option-focus-state-layer-color: transparent;--mat-option-label-text-font: var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));--mat-option-label-text-size: var(--mat-exp-menu-label-size, 14px);--mat-option-label-text-weight: var(--mat-exp-menu-label-weight, 500);--mat-option-label-text-line-height: var(--mat-exp-menu-label-line-height, 20px);--mat-option-label-text-tracking: var(--mat-exp-menu-label-tracking, .1px);border-radius:var(--mat-exp-menu-container-shape, 16px)!important;max-block-size:18rem;padding:2px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:auto;scrollbar-width:auto;scrollbar-color:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline)) var(--city-surface);clip-path:inset(0 round var(--mat-exp-menu-container-shape, 16px))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-panel-vibrant{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-tertiary-container));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-tertiary-container));--city-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary));--city-on-selected: var(--mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary));--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-tertiary-container))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-1{--city-target: 44px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-2{--city-target: 40px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-3{--city-target: 36px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-no-motion{animation:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option{--city-row-shape: var(--mat-exp-menu-item-shape, 4px);--city-row-state: var(--city-state);position:relative;isolation:isolate;min-block-size:var(--city-target);padding-inline:16px;border-radius:var(--city-row-shape);background:transparent}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:first-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:last-child{--city-row-shape: var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:only-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:before,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:after{content:\"\";position:absolute;inset:2px 0;z-index:-1;border-radius:var(--city-row-shape);pointer-events:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):hover:after{background:color-mix(in srgb,var(--city-row-state) 8%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active:after,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):active:after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{--city-row-shape: var(--mat-exp-menu-selected-shape, 12px);--city-row-state: var(--city-on-selected);color:var(--city-on-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:var(--city-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active{outline:var(--mat-exp-menu-focus-width, 3px) solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:var(--mat-exp-menu-focus-offset, -3px)}@supports selector(::-webkit-scrollbar){.mat-exp-autocomplete-panel[role=listbox]{scrollbar-color:auto;scrollbar-width:auto}}.mat-exp-autocomplete-panel::-webkit-scrollbar{width:var(--mat-exp-menu-scrollbar-width, 12px)}.mat-exp-autocomplete-panel::-webkit-scrollbar-button{display:none}.mat-exp-autocomplete-panel::-webkit-scrollbar-track{margin-block:4px;background:var(--city-surface)}.mat-exp-autocomplete-panel::-webkit-scrollbar-thumb{border:3px solid var(--city-surface);border-radius:12px;background:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline))}.mat-exp-autocomplete-row{display:flex;align-items:center;justify-content:space-between;gap:12px;inline-size:100%}.mat-exp-autocomplete-check{inline-size:20px;block-size:20px;font-size:20px;line-height:20px;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-autocomplete-panel[role=listbox]{animation:none}}@media(forced-colors:active){.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-active{outline-color:Highlight}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:SelectedItemText}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:SelectedItem;forced-color-adjust:none}}mat-exp-select{display:block}.mat-exp-select-field{inline-size:min(100%,22rem)}.mat-exp-select-label{display:block;margin-block-end:4px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-small)}.mat-exp-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-block-size:48px;box-sizing:border-box;padding:12px 16px;border:1px solid var(--mat-sys-outline);border-radius:4px;cursor:pointer;background:var(--mat-sys-surface);color:var(--mat-sys-on-surface);font:var(--mat-sys-body-large)}.mat-exp-select-trigger:focus-visible{outline:3px solid var(--mat-sys-secondary);outline-offset:2px}.mat-exp-select-trigger[aria-disabled=true]{opacity:.38;cursor:default}.mat-exp-select-trigger mat-icon{flex-shrink:0}.mat-exp-select-value{overflow-wrap:anywhere}.mat-exp-select-placeholder{color:var(--mat-sys-on-surface-variant)}.mat-exp-select-popup{inline-size:100%;overflow:hidden;border-radius:var(--mat-exp-menu-container-shape, 16px);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2))}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox]{box-sizing:border-box;inline-size:100%;max-block-size:min(18rem,100dvh - 16px);background:var(--city-surface);box-shadow:none;clip-path:none}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option{box-sizing:border-box;display:flex;align-items:center;cursor:pointer;color:var(--city-label);font-family:var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));font-size:var(--mat-exp-menu-label-size, 14px);font-weight:var(--mat-exp-menu-label-weight, 500);line-height:var(--mat-exp-menu-label-line-height, 20px);letter-spacing:var(--mat-exp-menu-label-tracking, .1px)}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:var(--city-on-selected)}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true]{cursor:default}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true] .mat-exp-autocomplete-row{opacity:.38}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true]:not(:has(.mat-exp-autocomplete-row)){opacity:.38}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true].mat-exp-autocomplete-selected:before{opacity:.38}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-select-pressed:not([aria-disabled=true]):after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-panel-vibrant .mat-exp-autocomplete-option[aria-disabled=true].mat-exp-autocomplete-selected:before{opacity:1}\n"], dependencies: [{ kind: "directive", type: Combobox, selector: "[ngCombobox]", inputs: ["disabled", "readonly", "softDisabled", "alwaysExpanded", "tabindex", "expanded", "value", "inlineSuggestion"], outputs: ["expandedChange", "valueChange"], exportAs: ["ngCombobox"] }, { kind: "directive", type: ComboboxPopup, selector: "ng-template[ngComboboxPopup]", inputs: ["combobox", "popupType"], exportAs: ["ngComboboxPopup"] }, { kind: "directive", type: ComboboxWidget, selector: "[ngComboboxWidget]", inputs: ["activeDescendant"], exportAs: ["ngComboboxWidget"] }, { kind: "directive", type: Listbox, selector: "[ngListbox]", inputs: ["id", "orientation", "multi", "wrap", "softDisabled", "focusMode", "selectionMode", "typeaheadDelay", "disabled", "readonly", "tabindex", "value"], outputs: ["valueChange"], exportAs: ["ngListbox"] }, { kind: "directive", type: Option, selector: "[ngOption]", inputs: ["id", "value", "disabled", "label"], exportAs: ["ngOption"] }, { kind: "directive", type: Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { 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", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
8409
+ }
8410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpSelect, decorators: [{
8411
+ type: Component,
8412
+ args: [{ selector: 'mat-exp-select', imports: [
8413
+ Combobox,
8414
+ ComboboxPopup,
8415
+ ComboboxWidget,
8416
+ Listbox,
8417
+ Option,
8418
+ Dir,
8419
+ CdkConnectedOverlay,
8420
+ CdkOverlayOrigin,
8421
+ MatIcon,
8422
+ MatRipple,
8423
+ ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
8424
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => MatExpSelect), multi: true },
8425
+ ], host: {
8426
+ '(document:pointerdown)': '_outside($event)',
8427
+ '(document:pointerup)': '_release()',
8428
+ '(document:pointercancel)': '_release()',
8429
+ }, template: "<div\n class=\"mat-exp-select-field\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n>\n <span class=\"mat-exp-select-label\"\n >{{ label() }}\n @if (required()) {\n <span aria-hidden=\"true\"> *</span>\n }\n </span>\n <div\n #trigger\n ngCombobox\n #combobox=\"ngCombobox\"\n class=\"mat-exp-select-trigger\"\n [disabled]=\"_disabled()\"\n [softDisabled]=\"false\"\n [expanded]=\"_expanded()\"\n (expandedChange)=\"_expand($event)\"\n [preserveContent]=\"true\"\n [attr.aria-label]=\"label()\"\n [attr.aria-autocomplete]=\"'none'\"\n [attr.aria-required]=\"required()\"\n (keydown)=\"_key($event)\"\n (focusout)=\"_blur()\"\n >\n <span class=\"mat-exp-select-value\" [class.mat-exp-select-placeholder]=\"!_display()\">{{\n _display() || placeholder()\n }}</span>\n <mat-icon aria-hidden=\"true\">{{ _expanded() ? 'arrow_drop_up' : 'arrow_drop_down' }}</mat-icon>\n </div>\n <ng-template ngComboboxPopup [combobox]=\"combobox\">\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"_present()\"\n [cdkConnectedOverlayPositions]=\"_positions\"\n [cdkConnectedOverlayWidth]=\"_popupWidth()\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n [cdkConnectedOverlayPush]=\"true\"\n (positionChange)=\"_origin($event.connectionPair.overlayY === 'bottom')\"\n >\n <div #surface class=\"mat-exp-select-popup\">\n <div\n #panel\n ngComboboxWidget\n ngListbox\n #listbox=\"ngListbox\"\n [activeDescendant]=\"listbox.activeDescendant()\"\n [value]=\"_indices()\"\n (valueChange)=\"_listValueChanged($event)\"\n [multi]=\"multiple()\"\n [softDisabled]=\"false\"\n focusMode=\"activedescendant\"\n selectionMode=\"explicit\"\n [class]=\"_classes()\"\n [attr.aria-label]=\"label() + ' options'\"\n [attr.aria-hidden]=\"!_expanded() ? 'true' : null\"\n [attr.inert]=\"!_expanded() ? '' : null\"\n [dir]=\"rtl() ? 'rtl' : 'ltr'\"\n >\n @for (option of _renderedOptions(); track $index; let index = $index) {\n <div\n ngOption\n matRipple\n #item=\"ngOption\"\n [value]=\"index\"\n [label]=\"option.label\"\n [disabled]=\"!!option.disabled\"\n [attr.data-option-index]=\"index\"\n [matRippleDisabled]=\"!motion() || !!option.disabled\"\n class=\"mat-exp-autocomplete-option\"\n [class.mat-exp-autocomplete-selected]=\"_indices().includes(index)\"\n [class.mat-exp-autocomplete-active]=\"item.active()\"\n [class.mat-exp-select-pressed]=\"_pressed() === index\"\n (pointerdown)=\"_press(index)\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <span class=\"mat-exp-autocomplete-row\"\n ><span>{{ option.label }}</span>\n <mat-icon class=\"mat-exp-autocomplete-check\" aria-hidden=\"true\">{{\n _indices().includes(index) ? 'check' : ''\n }}</mat-icon>\n </span>\n </div>\n } @empty {\n <div\n ngOption\n [value]=\"-1\"\n [label]=\"emptyLabel()\"\n disabled\n class=\"mat-exp-autocomplete-option\"\n >\n {{ emptyLabel() }}\n </div>\n }\n </div>\n </div>\n </ng-template>\n </ng-template>\n</div>\n", styles: [".mat-exp-autocomplete-panel[role=listbox]{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-surface-container-low));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-surface));--city-selected: var( --mat-exp-menu-selected-container-color, var(--mat-sys-tertiary-container) );--city-on-selected: var( --mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary-container) );--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-surface));--city-target: 48px;--mat-autocomplete-container-shape: var(--mat-exp-menu-container-shape, 16px);--mat-autocomplete-background-color: var(--city-surface);--mat-autocomplete-container-elevation-shadow: var(--mat-exp-menu-elevation, var(--mat-sys-level2));--mat-option-label-text-color: var(--city-label);--mat-option-selected-state-label-text-color: var(--city-on-selected);--mat-option-selected-state-layer-color: transparent;--mat-option-hover-state-layer-color: transparent;--mat-option-focus-state-layer-color: transparent;--mat-option-label-text-font: var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));--mat-option-label-text-size: var(--mat-exp-menu-label-size, 14px);--mat-option-label-text-weight: var(--mat-exp-menu-label-weight, 500);--mat-option-label-text-line-height: var(--mat-exp-menu-label-line-height, 20px);--mat-option-label-text-tracking: var(--mat-exp-menu-label-tracking, .1px);border-radius:var(--mat-exp-menu-container-shape, 16px)!important;max-block-size:18rem;padding:2px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:auto;scrollbar-width:auto;scrollbar-color:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline)) var(--city-surface);clip-path:inset(0 round var(--mat-exp-menu-container-shape, 16px))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-panel-vibrant{--city-surface: var(--mat-exp-menu-container-color, var(--mat-sys-tertiary-container));--city-label: var(--mat-exp-menu-label-color, var(--mat-sys-on-tertiary-container));--city-selected: var(--mat-exp-menu-selected-container-color, var(--mat-sys-tertiary));--city-on-selected: var(--mat-exp-menu-selected-content-color, var(--mat-sys-on-tertiary));--city-state: var(--mat-exp-menu-state-layer-color, var(--mat-sys-on-tertiary-container))}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-1{--city-target: 44px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-2{--city-target: 40px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-density-3{--city-target: 36px}.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-no-motion{animation:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option{--city-row-shape: var(--mat-exp-menu-item-shape, 4px);--city-row-state: var(--city-state);position:relative;isolation:isolate;min-block-size:var(--city-target);padding-inline:16px;border-radius:var(--city-row-shape);background:transparent}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:first-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:last-child{--city-row-shape: var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-shape, 4px) var(--mat-exp-menu-item-outer-shape, 12px) var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:only-child{--city-row-shape: var(--mat-exp-menu-item-outer-shape, 12px)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:before,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:after{content:\"\";position:absolute;inset:2px 0;z-index:-1;border-radius:var(--city-row-shape);pointer-events:none}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):hover:after{background:color-mix(in srgb,var(--city-row-state) 8%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active:after,.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]):active:after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{--city-row-shape: var(--mat-exp-menu-selected-shape, 12px);--city-row-state: var(--city-on-selected);color:var(--city-on-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:var(--city-selected)}.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option:not([aria-disabled=true]).mat-exp-autocomplete-active{outline:var(--mat-exp-menu-focus-width, 3px) solid var(--mat-exp-menu-focus-color, var(--mat-sys-secondary));outline-offset:var(--mat-exp-menu-focus-offset, -3px)}@supports selector(::-webkit-scrollbar){.mat-exp-autocomplete-panel[role=listbox]{scrollbar-color:auto;scrollbar-width:auto}}.mat-exp-autocomplete-panel::-webkit-scrollbar{width:var(--mat-exp-menu-scrollbar-width, 12px)}.mat-exp-autocomplete-panel::-webkit-scrollbar-button{display:none}.mat-exp-autocomplete-panel::-webkit-scrollbar-track{margin-block:4px;background:var(--city-surface)}.mat-exp-autocomplete-panel::-webkit-scrollbar-thumb{border:3px solid var(--city-surface);border-radius:12px;background:var(--mat-exp-menu-scrollbar-color, var(--mat-sys-outline))}.mat-exp-autocomplete-row{display:flex;align-items:center;justify-content:space-between;gap:12px;inline-size:100%}.mat-exp-autocomplete-check{inline-size:20px;block-size:20px;font-size:20px;line-height:20px;flex-shrink:0}@media(prefers-reduced-motion:reduce){.mat-exp-autocomplete-panel[role=listbox]{animation:none}}@media(forced-colors:active){.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-active{outline-color:Highlight}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:SelectedItemText}.mat-exp-autocomplete-panel .mat-exp-autocomplete-option.mat-exp-autocomplete-selected:before{background:SelectedItem;forced-color-adjust:none}}mat-exp-select{display:block}.mat-exp-select-field{inline-size:min(100%,22rem)}.mat-exp-select-label{display:block;margin-block-end:4px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-small)}.mat-exp-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-block-size:48px;box-sizing:border-box;padding:12px 16px;border:1px solid var(--mat-sys-outline);border-radius:4px;cursor:pointer;background:var(--mat-sys-surface);color:var(--mat-sys-on-surface);font:var(--mat-sys-body-large)}.mat-exp-select-trigger:focus-visible{outline:3px solid var(--mat-sys-secondary);outline-offset:2px}.mat-exp-select-trigger[aria-disabled=true]{opacity:.38;cursor:default}.mat-exp-select-trigger mat-icon{flex-shrink:0}.mat-exp-select-value{overflow-wrap:anywhere}.mat-exp-select-placeholder{color:var(--mat-sys-on-surface-variant)}.mat-exp-select-popup{inline-size:100%;overflow:hidden;border-radius:var(--mat-exp-menu-container-shape, 16px);box-shadow:var(--mat-exp-menu-elevation, var(--mat-sys-level2))}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox]{box-sizing:border-box;inline-size:100%;max-block-size:min(18rem,100dvh - 16px);background:var(--city-surface);box-shadow:none;clip-path:none}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option{box-sizing:border-box;display:flex;align-items:center;cursor:pointer;color:var(--city-label);font-family:var(--mat-exp-menu-label-font, var(--mat-sys-label-large-font, sans-serif));font-size:var(--mat-exp-menu-label-size, 14px);font-weight:var(--mat-exp-menu-label-weight, 500);line-height:var(--mat-exp-menu-label-line-height, 20px);letter-spacing:var(--mat-exp-menu-label-tracking, .1px)}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-autocomplete-selected{color:var(--city-on-selected)}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true]{cursor:default}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true] .mat-exp-autocomplete-row{opacity:.38}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true]:not(:has(.mat-exp-autocomplete-row)){opacity:.38}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option[aria-disabled=true].mat-exp-autocomplete-selected:before{opacity:.38}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox] .mat-exp-autocomplete-option.mat-exp-select-pressed:not([aria-disabled=true]):after{background:color-mix(in srgb,var(--city-row-state) 10%,transparent)}.mat-exp-select-surface.mat-exp-autocomplete-panel[role=listbox].mat-exp-autocomplete-panel-vibrant .mat-exp-autocomplete-option[aria-disabled=true].mat-exp-autocomplete-selected:before{opacity:1}\n"] }]
8430
+ }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], emptyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyLabel", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], popupMotion: [{ type: i0.Input, args: [{ isSignal: true, alias: "popupMotion", required: false }] }], rtl: [{ type: i0.Input, args: [{ isSignal: true, alias: "rtl", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], compareWith: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareWith", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], value: [{
8431
+ type: Input
8432
+ }], _trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], _originElement: [{ type: i0.ViewChild, args: ['origin', { ...{
8433
+ read: (ElementRef),
8434
+ }, isSignal: true }] }], _panel: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], _surface: [{ type: i0.ViewChild, args: ['surface', { isSignal: true }] }], _listbox: [{ type: i0.ViewChild, args: ['listbox', { isSignal: true }] }], _overlay: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkConnectedOverlay), { isSignal: true }] }] } });
8435
+
6000
8436
  /** A Material-shaped reference whose completion follows the owned spring lifecycle. */
6001
8437
  class MatExpDialogRef {
6002
8438
  _cdk;
@@ -6731,7 +9167,7 @@ class MatExpDialogLayout {
6731
9167
  <ng-container [ngTemplateOutlet]="actions.template" />
6732
9168
  </div>
6733
9169
  }
6734
- `, isInline: true, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}mat-exp-dialog-layout>.mat-exp-dialog-close.cdk-program-focused:not(:focus-visible,:hover)>.mat-mdc-button-persistent-ripple:before{opacity:0}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]{grid-template:\"close heading\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/auto minmax(0,1fr)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-actions{align-self:stretch;max-width:none;min-height:0;padding:1rem max(24px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-body{padding-bottom:1.5rem}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]:dir(rtl)>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-left,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
9170
+ `, isInline: true, styles: ["mat-exp-dialog-layout{display:grid;grid-template:\"heading close\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/1fr auto;min-height:0;max-height:inherit;height:100%}mat-exp-dialog-layout>.mat-exp-dialog-heading{grid-area:heading;margin:0;min-width:0;overflow-wrap:anywhere}mat-exp-dialog-layout>.mat-exp-dialog-body{grid-area:body;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}mat-exp-dialog-layout>.mat-exp-dialog-actions{grid-area:actions}mat-exp-dialog-layout>.mat-exp-dialog-close{grid-area:close;align-self:center;margin-inline-end:16px}mat-exp-dialog-layout>.mat-exp-dialog-close.cdk-program-focused:not(:focus-visible,:hover)>.mat-mdc-button-persistent-ripple:before{opacity:0}@media(max-width:599px){.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]{grid-template:\"close heading actions\" auto \"body body body\" minmax(0,1fr)/auto minmax(0,1fr) auto;padding-top:env(safe-area-inset-top,0px)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-close{grid-area:close;display:inline-flex;align-self:center;margin-inline-start:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading{align-self:center;padding:.75rem .5rem;font:var(--mat-sys-title-large)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-heading:before{display:none}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-actions{align-self:center;min-height:3.5rem;padding:0;padding-inline-end:max(8px,env(safe-area-inset-right,0px));border:0;flex-wrap:wrap;max-width:45vw}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-close{margin-inline-start:max(8px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]:dir(rtl)>.mat-exp-dialog-actions{padding-inline-end:max(8px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive]>.mat-exp-dialog-body{padding-top:1.5rem;padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]{grid-template:\"close heading\" auto \"body body\" minmax(0,1fr) \"actions actions\" auto/auto minmax(0,1fr)}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-right,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-actions{align-self:stretch;max-width:none;min-height:0;padding:1rem max(24px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]>.mat-exp-dialog-body{padding-bottom:1.5rem}.mat-exp-dialog-panel mat-exp-dialog-layout[data-mode=adaptive][data-compact-actions=footer]:dir(rtl)>.mat-exp-dialog-heading{padding-inline-end:max(16px,env(safe-area-inset-left,0px))}}mat-exp-dialog-layout>.mat-exp-dialog-heading{padding:24px 24px 16px;color:var(--mat-sys-on-surface);font:var(--mat-sys-headline-small)}mat-exp-dialog-layout>.mat-exp-dialog-body{padding:0 24px;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}mat-exp-dialog-layout>.mat-exp-dialog-body>:first-child{margin-top:0}mat-exp-dialog-layout>.mat-exp-dialog-body>:last-child{margin-bottom:0}mat-exp-dialog-layout>.mat-exp-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:24px}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6735
9171
  }
6736
9172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogLayout, decorators: [{
6737
9173
  type: Component,
@@ -6780,7 +9216,7 @@ class MatExpDialogConfirmation {
6780
9216
  <button matButton [matExpDialogClose]="true">{{ _data.confirmLabel }}</button>
6781
9217
  </ng-template>
6782
9218
  </mat-exp-dialog-layout>
6783
- `, isInline: true, dependencies: [{ kind: "component", type: MatExpDialogLayout, selector: "mat-exp-dialog-layout", exportAs: ["matExpDialogLayout"] }, { kind: "directive", type: MatExpDialogActions, selector: "ng-template[matExpDialogActions]", exportAs: ["matExpDialogActions"] }, { kind: "directive", type: MatExpDialogClose, selector: "[matExpDialogClose]", inputs: ["matExpDialogClose", "type"], exportAs: ["matExpDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9219
+ `, isInline: true, dependencies: [{ kind: "component", type: MatExpDialogLayout, selector: "mat-exp-dialog-layout", exportAs: ["matExpDialogLayout"] }, { kind: "directive", type: MatExpDialogActions, selector: "ng-template[matExpDialogActions]", exportAs: ["matExpDialogActions"] }, { kind: "directive", type: MatExpDialogClose, selector: "[matExpDialogClose]", inputs: ["matExpDialogClose", "type"], exportAs: ["matExpDialogClose"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
6784
9220
  }
6785
9221
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: MatExpDialogConfirmation, decorators: [{
6786
9222
  type: Component,
@@ -6970,5 +9406,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImpor
6970
9406
  * Generated bundle index. Do not edit.
6971
9407
  */
6972
9408
 
6973
- export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_STEPPER_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpNavigationRail, MatExpNavigationRailGroup, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
9409
+ export { ButtonAdapter, IconButtonAdapter, MAT_EXP_BUTTON_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP, MAT_EXP_BUTTON_GROUP_DEFAULT_OPTIONS, MAT_EXP_BUTTON_GROUP_OPTIONS, MAT_EXP_BUTTON_GROUP_VALUE_ACCESSOR, MAT_EXP_BUTTON_OPTIONS, MAT_EXP_DIALOG_OPTIONS, MAT_EXP_FAB_MENU_OPTIONS, MAT_EXP_ICON_BUTTON_DEFAULT_OPTIONS, MAT_EXP_ICON_BUTTON_OPTIONS, MAT_EXP_LIST_DEFAULT_OPTIONS, MAT_EXP_LIST_OPTIONS, MAT_EXP_LOADING_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_LOADING_INDICATOR_OPTIONS, MAT_EXP_LOADING_INDICATOR_SHAPES, MAT_EXP_LOADING_INDICATOR_VIEW_BOX, MAT_EXP_MENU_DEFAULT_OPTIONS, MAT_EXP_MENU_OPTIONS, MAT_EXP_MENU_SURFACE, MAT_EXP_NAVIGATION_RAIL_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_DEFAULT_OPTIONS, MAT_EXP_PROGRESS_INDICATOR_OPTIONS, MAT_EXP_RICH_TOOLTIP_DEFAULT_OPTIONS, MAT_EXP_RICH_TOOLTIP_OPTIONS, MAT_EXP_SEARCH_DEFAULT_OPTIONS, MAT_EXP_SEARCH_OPTIONS, MAT_EXP_SPLIT_BUTTON_DEFAULT_OPTIONS, MAT_EXP_SPLIT_BUTTON_OPTIONS, MAT_EXP_STEPPER_OPTIONS, MAT_EXP_TOOLBAR_OPTIONS, MatExpAutocomplete, MatExpButton, MatExpButtonGroup, MatExpDialog, MatExpDialogActions, MatExpDialogClose, MatExpDialogLayout, MatExpDialogRef, MatExpFabMenu, MatExpFabMenuButton, MatExpFabMenuTrigger, MatExpIconButton, MatExpList, MatExpListItem, MatExpListMediaDirective, MatExpLoadingIndicator, MatExpMenu, MatExpMenuContent, MatExpMenuContextTrigger, MatExpMenuItemDirective, MatExpMenuItemTemplate, MatExpMenuTrigger, MatExpNavigationRail, MatExpNavigationRailGroup, MatExpNavigationRailItem, MatExpNavigationRailSection, MatExpProgressIndicator, MatExpRichTooltip, MatExpRichTooltipTrigger, MatExpSearch, MatExpSearchResult, MatExpSelect, MatExpSelectableButtonChange, MatExpSplitButton, MatExpStep, MatExpStepper, MatExpToolbar, MatExpToolbarItem, bindButtonGroupChildren, injectMatExpButtonGroupOptions, injectMatExpButtonOptions, injectMatExpFabMenuOptions, injectMatExpIconButtonOptions, injectMatExpLoadingIndicatorOptions, injectMatExpMenuOptions, injectMatExpProgressIndicatorOptions, injectMatExpRichTooltipOptions, injectMatExpSearchOptions, injectMatExpSplitButtonOptions, provideMatExpButtonGroupOptions, provideMatExpButtonOptions, provideMatExpDialogOptions, provideMatExpFabMenuOptions, provideMatExpIconButtonOptions, provideMatExpListOptions, provideMatExpLoadingIndicatorOptions, provideMatExpMenuOptions, provideMatExpNavigationRailOptions, provideMatExpProgressIndicatorOptions, provideMatExpRichTooltipOptions, provideMatExpSearchOptions, provideMatExpSplitButtonOptions, provideMatExpStepperOptions, provideMatExpToolbarOptions, toButtonGroupChild };
6974
9410
  //# sourceMappingURL=camaradesuk-m3e-angular.mjs.map