@angular/material-experimental 13.0.0-next.3 → 13.0.0-next.7

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 (202) hide show
  1. package/bundles/material-experimental-column-resize.umd.js +1 -1
  2. package/bundles/material-experimental-column-resize.umd.js.map +1 -1
  3. package/bundles/material-experimental-mdc-autocomplete-testing.umd.js +1 -1
  4. package/bundles/material-experimental-mdc-autocomplete-testing.umd.js.map +1 -1
  5. package/bundles/material-experimental-mdc-autocomplete.umd.js +1 -1
  6. package/bundles/material-experimental-mdc-autocomplete.umd.js.map +1 -1
  7. package/bundles/material-experimental-mdc-button-testing.umd.js +2 -10
  8. package/bundles/material-experimental-mdc-button-testing.umd.js.map +1 -1
  9. package/bundles/material-experimental-mdc-button.umd.js +9 -9
  10. package/bundles/material-experimental-mdc-button.umd.js.map +1 -1
  11. package/bundles/material-experimental-mdc-card-testing.umd.js +1 -1
  12. package/bundles/material-experimental-mdc-card-testing.umd.js.map +1 -1
  13. package/bundles/material-experimental-mdc-checkbox-testing.umd.js +1 -1
  14. package/bundles/material-experimental-mdc-checkbox-testing.umd.js.map +1 -1
  15. package/bundles/material-experimental-mdc-checkbox.umd.js +1 -1
  16. package/bundles/material-experimental-mdc-checkbox.umd.js.map +1 -1
  17. package/bundles/material-experimental-mdc-chips-testing.umd.js +1 -1
  18. package/bundles/material-experimental-mdc-chips-testing.umd.js.map +1 -1
  19. package/bundles/material-experimental-mdc-chips.umd.js +12 -10
  20. package/bundles/material-experimental-mdc-chips.umd.js.map +1 -1
  21. package/bundles/material-experimental-mdc-core-testing.umd.js +1 -1
  22. package/bundles/material-experimental-mdc-core-testing.umd.js.map +1 -1
  23. package/bundles/material-experimental-mdc-core.umd.js +2 -2
  24. package/bundles/material-experimental-mdc-core.umd.js.map +1 -1
  25. package/bundles/material-experimental-mdc-dialog-testing.umd.js +1 -1
  26. package/bundles/material-experimental-mdc-dialog-testing.umd.js.map +1 -1
  27. package/bundles/material-experimental-mdc-dialog.umd.js +2 -2
  28. package/bundles/material-experimental-mdc-dialog.umd.js.map +1 -1
  29. package/bundles/material-experimental-mdc-form-field-testing.umd.js +1 -1
  30. package/bundles/material-experimental-mdc-form-field-testing.umd.js.map +1 -1
  31. package/bundles/material-experimental-mdc-form-field.umd.js +14 -7
  32. package/bundles/material-experimental-mdc-form-field.umd.js.map +1 -1
  33. package/bundles/material-experimental-mdc-input.umd.js +5 -32
  34. package/bundles/material-experimental-mdc-input.umd.js.map +1 -1
  35. package/bundles/material-experimental-mdc-list-testing.umd.js +1 -1
  36. package/bundles/material-experimental-mdc-list-testing.umd.js.map +1 -1
  37. package/bundles/material-experimental-mdc-list.umd.js +5 -5
  38. package/bundles/material-experimental-mdc-list.umd.js.map +1 -1
  39. package/bundles/material-experimental-mdc-menu-testing.umd.js +2 -2
  40. package/bundles/material-experimental-mdc-menu-testing.umd.js.map +1 -1
  41. package/bundles/material-experimental-mdc-menu.umd.js +45 -23
  42. package/bundles/material-experimental-mdc-menu.umd.js.map +1 -1
  43. package/bundles/material-experimental-mdc-paginator-testing.umd.js +1 -1
  44. package/bundles/material-experimental-mdc-paginator-testing.umd.js.map +1 -1
  45. package/bundles/material-experimental-mdc-paginator.umd.js +1 -1
  46. package/bundles/material-experimental-mdc-paginator.umd.js.map +1 -1
  47. package/bundles/material-experimental-mdc-progress-bar-testing.umd.js +1 -1
  48. package/bundles/material-experimental-mdc-progress-bar-testing.umd.js.map +1 -1
  49. package/bundles/material-experimental-mdc-progress-bar.umd.js +1 -1
  50. package/bundles/material-experimental-mdc-progress-bar.umd.js.map +1 -1
  51. package/bundles/material-experimental-mdc-progress-spinner-testing.umd.js +1 -1
  52. package/bundles/material-experimental-mdc-progress-spinner-testing.umd.js.map +1 -1
  53. package/bundles/material-experimental-mdc-progress-spinner.umd.js +1 -1
  54. package/bundles/material-experimental-mdc-progress-spinner.umd.js.map +1 -1
  55. package/bundles/material-experimental-mdc-radio-testing.umd.js +1 -1
  56. package/bundles/material-experimental-mdc-radio-testing.umd.js.map +1 -1
  57. package/bundles/material-experimental-mdc-radio.umd.js +1 -1
  58. package/bundles/material-experimental-mdc-radio.umd.js.map +1 -1
  59. package/bundles/material-experimental-mdc-select-testing.umd.js +1 -1
  60. package/bundles/material-experimental-mdc-select-testing.umd.js.map +1 -1
  61. package/bundles/material-experimental-mdc-select.umd.js +2 -2
  62. package/bundles/material-experimental-mdc-select.umd.js.map +1 -1
  63. package/bundles/material-experimental-mdc-slide-toggle-testing.umd.js +1 -1
  64. package/bundles/material-experimental-mdc-slide-toggle-testing.umd.js.map +1 -1
  65. package/bundles/material-experimental-mdc-slide-toggle.umd.js +1 -1
  66. package/bundles/material-experimental-mdc-slider-testing.umd.js +1 -1
  67. package/bundles/material-experimental-mdc-slider-testing.umd.js.map +1 -1
  68. package/bundles/material-experimental-mdc-slider.umd.js +9 -1
  69. package/bundles/material-experimental-mdc-slider.umd.js.map +1 -1
  70. package/bundles/material-experimental-mdc-snack-bar-testing.umd.js +8 -4
  71. package/bundles/material-experimental-mdc-snack-bar-testing.umd.js.map +1 -1
  72. package/bundles/material-experimental-mdc-snack-bar.umd.js +2 -3
  73. package/bundles/material-experimental-mdc-snack-bar.umd.js.map +1 -1
  74. package/bundles/material-experimental-mdc-table-testing.umd.js +1 -1
  75. package/bundles/material-experimental-mdc-table-testing.umd.js.map +1 -1
  76. package/bundles/material-experimental-mdc-table.umd.js +2 -2
  77. package/bundles/material-experimental-mdc-table.umd.js.map +1 -1
  78. package/bundles/material-experimental-mdc-tabs-testing.umd.js +1 -1
  79. package/bundles/material-experimental-mdc-tabs-testing.umd.js.map +1 -1
  80. package/bundles/material-experimental-mdc-tabs.umd.js +11 -4
  81. package/bundles/material-experimental-mdc-tabs.umd.js.map +1 -1
  82. package/bundles/material-experimental-mdc-tooltip-testing.umd.js +1 -1
  83. package/bundles/material-experimental-mdc-tooltip-testing.umd.js.map +1 -1
  84. package/bundles/material-experimental-mdc-tooltip.umd.js +2 -2
  85. package/bundles/material-experimental-mdc-tooltip.umd.js.map +1 -1
  86. package/bundles/material-experimental-menubar.umd.js +1 -1
  87. package/bundles/material-experimental-menubar.umd.js.map +1 -1
  88. package/bundles/material-experimental-popover-edit.umd.js +1 -1
  89. package/bundles/material-experimental-popover-edit.umd.js.map +1 -1
  90. package/bundles/material-experimental-selection.umd.js +1 -1
  91. package/bundles/material-experimental-selection.umd.js.map +1 -1
  92. package/bundles/material-experimental.umd.js +1 -1
  93. package/bundles/material-experimental.umd.js.map +1 -1
  94. package/esm2015/mdc-button/button.js +2 -2
  95. package/esm2015/mdc-button/fab.js +4 -4
  96. package/esm2015/mdc-button/icon-button.js +2 -2
  97. package/esm2015/mdc-button/testing/button-harness.js +3 -10
  98. package/esm2015/mdc-chips/chip-grid.js +7 -5
  99. package/esm2015/mdc-chips/chip-icons.js +1 -1
  100. package/esm2015/mdc-chips/chip-input.js +2 -2
  101. package/esm2015/mdc-chips/chip-listbox.js +1 -1
  102. package/esm2015/mdc-chips/chip-option.js +1 -1
  103. package/esm2015/mdc-chips/chip-row.js +1 -1
  104. package/esm2015/mdc-chips/chip-set.js +2 -2
  105. package/esm2015/mdc-chips/chip.js +1 -1
  106. package/esm2015/mdc-core/option/option.js +1 -1
  107. package/esm2015/mdc-core/public-api.js +1 -1
  108. package/esm2015/mdc-dialog/dialog-container.js +1 -1
  109. package/esm2015/mdc-form-field/form-field.js +14 -7
  110. package/esm2015/mdc-input/input.js +3 -3
  111. package/esm2015/mdc-input/module.js +3 -4
  112. package/esm2015/mdc-input/public-api.js +1 -2
  113. package/esm2015/mdc-list/action-list.js +1 -1
  114. package/esm2015/mdc-list/list.js +1 -1
  115. package/esm2015/mdc-list/nav-list.js +1 -1
  116. package/esm2015/mdc-list/selection-list.js +1 -1
  117. package/esm2015/mdc-menu/directives.js +31 -0
  118. package/esm2015/mdc-menu/menu.js +1 -1
  119. package/esm2015/mdc-menu/module.js +12 -6
  120. package/esm2015/mdc-menu/public-api.js +3 -2
  121. package/esm2015/mdc-menu/testing/menu-harness.js +2 -2
  122. package/esm2015/mdc-select/select.js +1 -1
  123. package/esm2015/mdc-slide-toggle/slide-toggle.js +1 -1
  124. package/esm2015/mdc-slider/global-change-and-input-listener.js +1 -1
  125. package/esm2015/mdc-slider/slider.js +9 -1
  126. package/esm2015/mdc-snack-bar/snack-bar-container.js +2 -3
  127. package/esm2015/mdc-snack-bar/testing/snack-bar-harness.js +7 -4
  128. package/esm2015/mdc-table/table.js +1 -1
  129. package/esm2015/mdc-tabs/public-api.js +2 -2
  130. package/esm2015/mdc-tabs/tab-header.js +1 -1
  131. package/esm2015/mdc-tabs/tab-nav-bar/tab-nav-bar.js +1 -1
  132. package/esm2015/mdc-tabs/tab.js +4 -3
  133. package/esm2015/mdc-tooltip/tooltip.js +1 -1
  134. package/esm2015/version.js +1 -1
  135. package/fesm2015/material-experimental.js +1 -1
  136. package/fesm2015/material-experimental.js.map +1 -1
  137. package/fesm2015/mdc-button/testing.js +2 -9
  138. package/fesm2015/mdc-button/testing.js.map +1 -1
  139. package/fesm2015/mdc-button.js +8 -8
  140. package/fesm2015/mdc-chips.js +12 -10
  141. package/fesm2015/mdc-chips.js.map +1 -1
  142. package/fesm2015/mdc-core.js +1 -1
  143. package/fesm2015/mdc-core.js.map +1 -1
  144. package/fesm2015/mdc-dialog.js +1 -1
  145. package/fesm2015/mdc-form-field.js +13 -6
  146. package/fesm2015/mdc-form-field.js.map +1 -1
  147. package/fesm2015/mdc-input.js +6 -34
  148. package/fesm2015/mdc-input.js.map +1 -1
  149. package/fesm2015/mdc-list.js +4 -4
  150. package/fesm2015/mdc-menu/testing.js +1 -1
  151. package/fesm2015/mdc-menu/testing.js.map +1 -1
  152. package/fesm2015/mdc-menu.js +43 -8
  153. package/fesm2015/mdc-menu.js.map +1 -1
  154. package/fesm2015/mdc-select.js +1 -1
  155. package/fesm2015/mdc-slide-toggle.js +1 -1
  156. package/fesm2015/mdc-slider.js +8 -0
  157. package/fesm2015/mdc-slider.js.map +1 -1
  158. package/fesm2015/mdc-snack-bar/testing.js +6 -3
  159. package/fesm2015/mdc-snack-bar/testing.js.map +1 -1
  160. package/fesm2015/mdc-snack-bar.js +1 -2
  161. package/fesm2015/mdc-snack-bar.js.map +1 -1
  162. package/fesm2015/mdc-table.js +1 -1
  163. package/fesm2015/mdc-tabs.js +6 -5
  164. package/fesm2015/mdc-tabs.js.map +1 -1
  165. package/fesm2015/mdc-tooltip.js +1 -1
  166. package/mdc-button/index.metadata.json +1 -1
  167. package/mdc-chips/chip-grid.d.ts +3 -3
  168. package/mdc-chips/chip-icons.d.ts +2 -2
  169. package/mdc-chips/chip-set.d.ts +2 -2
  170. package/mdc-chips/index.metadata.json +1 -1
  171. package/mdc-core/index.metadata.json +1 -1
  172. package/mdc-core/public-api.d.ts +1 -1
  173. package/mdc-dialog/index.metadata.json +1 -1
  174. package/mdc-form-field/_form-field-native-select.scss +3 -28
  175. package/mdc-form-field/_form-field-sizing.scss +0 -4
  176. package/mdc-form-field/_form-field-subscript.scss +4 -12
  177. package/mdc-form-field/_form-field-theme.scss +23 -7
  178. package/mdc-form-field/_mdc-text-field-structure-overrides.scss +16 -9
  179. package/mdc-form-field/_mdc-text-field-textarea-overrides.scss +9 -1
  180. package/mdc-form-field/index.metadata.json +1 -1
  181. package/mdc-input/index.metadata.json +1 -1
  182. package/mdc-input/public-api.d.ts +0 -1
  183. package/mdc-list/index.metadata.json +1 -1
  184. package/mdc-menu/_menu-theme.scss +1 -1
  185. package/mdc-menu/directives.d.ts +14 -0
  186. package/mdc-menu/index.metadata.json +1 -1
  187. package/mdc-menu/public-api.d.ts +2 -1
  188. package/mdc-select/index.metadata.json +1 -1
  189. package/mdc-slide-toggle/index.metadata.json +1 -1
  190. package/mdc-slider/global-change-and-input-listener.d.ts +1 -1
  191. package/mdc-slider/index.metadata.json +1 -1
  192. package/mdc-slider/slider.d.ts +2 -0
  193. package/mdc-snack-bar/testing/snack-bar-harness.d.ts +1 -1
  194. package/mdc-table/_table-theme.scss +0 -9
  195. package/mdc-table/index.metadata.json +1 -1
  196. package/mdc-tabs/index.metadata.json +1 -1
  197. package/mdc-tabs/public-api.d.ts +1 -1
  198. package/mdc-theming/prebuilt/indigo-pink.css +1 -1
  199. package/mdc-tooltip/index.metadata.json +1 -1
  200. package/package.json +3 -3
  201. package/esm2015/mdc-input/autosize.js +0 -30
  202. package/mdc-input/autosize.d.ts +0 -15
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-slider.js","sources":["../../../../../../src/material-experimental/mdc-slider/global-change-and-input-listener.ts","../../../../../../src/material-experimental/mdc-slider/slider.ts","../../../../../../src/material-experimental/mdc-slider/module.ts","../../../../../../src/material-experimental/mdc-slider/public-api.ts","../../../../../../src/material-experimental/mdc-slider/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable, NgZone, OnDestroy} from '@angular/core';\nimport {SpecificEventListener} from '@material/base/types';\nimport {fromEvent, Observable, Subject, Subscription} from 'rxjs';\nimport {finalize, share, takeUntil} from 'rxjs/operators';\n\n/**\n * Handles listening for all change and input events that occur on the document.\n *\n * This service exposes a single method #listen to allow users to subscribe to change and input\n * events that occur on the document. Since listening for these events can be expensive, we use\n * #fromEvent which will lazily attach a listener when the first subscription is made and remove the\n * listener once the last observer unsubscribes.\n */\n@Injectable({providedIn: 'root'})\nexport class GlobalChangeAndInputListener<K extends 'change'|'input'> implements OnDestroy {\n\n /** The injected document if available or fallback to the global document reference. */\n private _document: Document;\n\n /** Stores the subjects that emit the events that occur on the global document. */\n private _observables = new Map<K, Observable<Event>>();\n\n /** The notifier that triggers the global event observables to stop emitting and complete. */\n private _destroyed = new Subject();\n\n constructor(@Inject(DOCUMENT) document: any, private _ngZone: NgZone) {\n this._document = document;\n }\n\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this._observables.clear();\n }\n\n /** Returns a subscription to global change or input events. */\n listen(type: K, callback: SpecificEventListener<K>): Subscription {\n // If this is the first time we are listening to this event, create the observable for it.\n if (!this._observables.has(type)) {\n this._observables.set(type, this._createGlobalEventObservable(type));\n }\n\n return this._ngZone.runOutsideAngular(() =>\n this._observables.get(type)!.subscribe((event: Event) =>\n this._ngZone.run(() => callback(event))\n )\n );\n }\n\n /** Creates an observable that emits all events of the given type. */\n private _createGlobalEventObservable(type: K) {\n return fromEvent(this._document, type, {capture: true, passive: true}).pipe(\n takeUntil(this._destroyed),\n finalize(() => this._observables.delete(type)),\n share(),\n );\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Directionality} from '@angular/cdk/bidi';\nimport {\n BooleanInput,\n coerceBooleanProperty,\n coerceNumberProperty,\n NumberInput\n} from '@angular/cdk/coercion';\nimport {Platform} from '@angular/cdk/platform';\nimport {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n QueryList,\n ViewChild,\n ViewChildren,\n ViewEncapsulation,\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {\n CanDisableRipple,\n MatRipple,\n MAT_RIPPLE_GLOBAL_OPTIONS,\n mixinColor,\n mixinDisableRipple,\n RippleAnimationConfig,\n RippleGlobalOptions,\n RippleRef,\n RippleState,\n} from '@angular/material/core';\nimport {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';\nimport {SpecificEventListener, EventType} from '@material/base/types';\nimport {MDCSliderAdapter, MDCSliderFoundation, Thumb, TickMark} from '@material/slider';\nimport {Subscription} from 'rxjs';\nimport {GlobalChangeAndInputListener} from './global-change-and-input-listener';\n\n/** Represents a drag event emitted by the MatSlider component. */\nexport interface MatSliderDragEvent {\n /** The MatSliderThumb that was interacted with. */\n source: MatSliderThumb;\n\n /** The MatSlider that was interacted with. */\n parent: MatSlider;\n\n /** The current value of the slider. */\n value: number;\n}\n\n/**\n * The visual slider thumb.\n *\n * Handles the slider thumb ripple states (hover, focus, and active),\n * and displaying the value tooltip on discrete sliders.\n * @docs-private\n */\n@Component({\n selector: 'mat-slider-visual-thumb',\n templateUrl: './slider-thumb.html',\n styleUrls: ['slider-thumb.css'],\n host: {\n 'class': 'mdc-slider__thumb mat-mdc-slider-visual-thumb',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSliderVisualThumb implements AfterViewInit, OnDestroy {\n /** Whether the slider displays a numeric value label upon pressing the thumb. */\n @Input() discrete: boolean;\n\n /** Indicates which slider thumb this input corresponds to. */\n @Input() thumbPosition: Thumb;\n\n /** The display value of the slider thumb. */\n @Input() valueIndicatorText: string;\n\n /** Whether ripples on the slider thumb should be disabled. */\n @Input() disableRipple: boolean = false;\n\n /** The MatRipple for this slider thumb. */\n @ViewChild(MatRipple) private readonly _ripple: MatRipple;\n\n /** The slider thumb knob */\n @ViewChild('knob') _knob: ElementRef<HTMLElement>;\n\n /** The slider input corresponding to this slider thumb. */\n private _sliderInput: MatSliderThumb;\n\n /** The RippleRef for the slider thumbs hover state. */\n private _hoverRippleRef: RippleRef | undefined;\n\n /** The RippleRef for the slider thumbs focus state. */\n private _focusRippleRef: RippleRef | undefined;\n\n /** The RippleRef for the slider thumbs active state. */\n private _activeRippleRef: RippleRef | undefined;\n\n /** Whether the slider thumb is currently being pressed. */\n private _isActive: boolean = false;\n\n /** Whether the slider thumb is currently being hovered. */\n private _isHovered: boolean = false;\n\n constructor(\n private readonly _ngZone: NgZone,\n @Inject(forwardRef(() => MatSlider)) private readonly _slider: MatSlider,\n private readonly _elementRef: ElementRef<HTMLElement>) {}\n\n ngAfterViewInit() {\n this._ripple.radius = 24;\n this._sliderInput = this._slider._getInput(this.thumbPosition);\n\n // Note that we don't unsubscribe from these, because they're complete on destroy.\n this._sliderInput.dragStart.subscribe(event => this._onDragStart(event));\n this._sliderInput.dragEnd.subscribe(event => this._onDragEnd(event));\n\n this._sliderInput._focus.subscribe(() => this._onFocus());\n this._sliderInput._blur.subscribe(() => this._onBlur());\n\n // These two listeners don't update any data bindings so we bind them\n // outside of the NgZone to prevent Angular from needlessly running change detection.\n this._ngZone.runOutsideAngular(() => {\n this._elementRef.nativeElement.addEventListener('mouseenter', this._onMouseEnter);\n this._elementRef.nativeElement.addEventListener('mouseleave', this._onMouseLeave);\n });\n }\n\n ngOnDestroy() {\n this._elementRef.nativeElement.removeEventListener('mouseenter', this._onMouseEnter);\n this._elementRef.nativeElement.removeEventListener('mouseleave', this._onMouseLeave);\n }\n\n private _onMouseEnter = (): void => {\n this._isHovered = true;\n // We don't want to show the hover ripple on top of the focus ripple.\n // This can happen if the user tabs to a thumb and then the user moves their cursor over it.\n if (!this._isShowingRipple(this._focusRippleRef)) {\n this._showHoverRipple();\n }\n }\n\n private _onMouseLeave = (): void => {\n this._isHovered = false;\n this._hoverRippleRef?.fadeOut();\n }\n\n private _onFocus(): void {\n // We don't want to show the hover ripple on top of the focus ripple.\n // Happen when the users cursor is over a thumb and then the user tabs to it.\n this._hoverRippleRef?.fadeOut();\n this._showFocusRipple();\n }\n\n private _onBlur(): void {\n // Happens when the user tabs away while still dragging a thumb.\n if (!this._isActive) {\n this._focusRippleRef?.fadeOut();\n }\n // Happens when the user tabs away from a thumb but their cursor is still over it.\n if (this._isHovered) {\n this._showHoverRipple();\n }\n }\n\n private _onDragStart(event: MatSliderDragEvent): void {\n if (event.source._thumbPosition === this.thumbPosition) {\n this._isActive = true;\n this._showActiveRipple();\n }\n }\n\n private _onDragEnd(event: MatSliderDragEvent): void {\n if (event.source._thumbPosition === this.thumbPosition) {\n this._isActive = false;\n this._activeRippleRef?.fadeOut();\n // Happens when the user starts dragging a thumb, tabs away, and then stops dragging.\n if (!this._sliderInput._isFocused()) {\n this._focusRippleRef?.fadeOut();\n }\n }\n }\n\n /** Handles displaying the hover ripple. */\n private _showHoverRipple(): void {\n if (!this._isShowingRipple(this._hoverRippleRef)) {\n this._hoverRippleRef = this._showRipple({ enterDuration: 0, exitDuration: 0 });\n this._hoverRippleRef?.element.classList.add('mat-mdc-slider-hover-ripple');\n }\n }\n\n /** Handles displaying the focus ripple. */\n private _showFocusRipple(): void {\n // Show the focus ripple event if noop animations are enabled.\n if (!this._isShowingRipple(this._focusRippleRef)) {\n this._focusRippleRef = this._showRipple({ enterDuration: 0, exitDuration: 0 });\n this._focusRippleRef?.element.classList.add('mat-mdc-slider-focus-ripple');\n }\n }\n\n /** Handles displaying the active ripple. */\n private _showActiveRipple(): void {\n if (!this._isShowingRipple(this._activeRippleRef)) {\n this._activeRippleRef = this._showRipple({ enterDuration: 225, exitDuration: 400 });\n this._activeRippleRef?.element.classList.add('mat-mdc-slider-active-ripple');\n }\n }\n\n /** Whether the given rippleRef is currently fading in or visible. */\n private _isShowingRipple(rippleRef?: RippleRef): boolean {\n return rippleRef?.state === RippleState.FADING_IN || rippleRef?.state === RippleState.VISIBLE;\n }\n\n /** Manually launches the slider thumb ripple using the specified ripple animation config. */\n private _showRipple(animation: RippleAnimationConfig): RippleRef | undefined {\n if (this.disableRipple) {\n return;\n }\n return this._ripple.launch({\n animation: this._slider._noopAnimations ? {enterDuration: 0, exitDuration: 0} : animation,\n centered: true,\n persistent: true\n });\n }\n\n /** Gets the hosts native HTML element. */\n _getHostElement(): HTMLElement {\n return this._elementRef.nativeElement;\n }\n\n /** Gets the native HTML element of the slider thumb knob. */\n _getKnob(): HTMLElement {\n return this._knob.nativeElement;\n }\n}\n\n/**\n * Directive that adds slider-specific behaviors to an input element inside `<mat-slider>`.\n * Up to two may be placed inside of a `<mat-slider>`.\n *\n * If one is used, the selector `matSliderThumb` must be used, and the outcome will be a normal\n * slider. If two are used, the selectors `matSliderStartThumb` and `matSliderEndThumb` must be\n * used, and the outcome will be a range slider with two slider thumbs.\n */\n@Directive({\n selector: 'input[matSliderThumb], input[matSliderStartThumb], input[matSliderEndThumb]',\n exportAs: 'matSliderThumb',\n host: {\n 'class': 'mdc-slider__input',\n 'type': 'range',\n '(blur)': '_onBlur()',\n '(focus)': '_focus.emit()',\n },\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: MatSliderThumb,\n multi: true\n }],\n})\nexport class MatSliderThumb implements AfterViewInit, ControlValueAccessor, OnInit, OnDestroy {\n\n // ** IMPORTANT NOTE **\n //\n // The way `value` is implemented for MatSliderThumb doesn't follow typical Angular conventions.\n // Normally we would define a private variable `_value` as the source of truth for the value of\n // the slider thumb input. The source of truth for the value of the slider inputs has already\n // been decided for us by MDC to be the value attribute on the slider thumb inputs. This is\n // because the MDC foundation and adapter expect that the value attribute is the source of truth\n // for the slider inputs.\n //\n // Also, note that the value attribute is completely disconnected from the value property.\n\n /** The current value of this slider input. */\n @Input()\n get value(): number {\n return coerceNumberProperty(this._hostElement.getAttribute('value'));\n }\n set value(v: number) {\n const value = coerceNumberProperty(v);\n\n // If the foundation has already been initialized, we need to\n // relay any value updates to it so that it can update the UI.\n if (this._slider._initialized) {\n this._slider._setValue(value, this._thumbPosition);\n } else {\n // Setup for the MDC foundation.\n this._hostElement.setAttribute('value', `${value}`);\n }\n }\n\n /**\n * Emits when the raw value of the slider changes. This is here primarily\n * to facilitate the two-way binding for the `value` input.\n * @docs-private\n */\n @Output() readonly valueChange: EventEmitter<number> = new EventEmitter<number>();\n\n /** Event emitted when the slider thumb starts being dragged. */\n @Output() readonly dragStart: EventEmitter<MatSliderDragEvent>\n = new EventEmitter<MatSliderDragEvent>();\n\n /** Event emitted when the slider thumb stops being dragged. */\n @Output() readonly dragEnd: EventEmitter<MatSliderDragEvent>\n = new EventEmitter<MatSliderDragEvent>();\n\n /** Event emitted every time the MatSliderThumb is blurred. */\n @Output() readonly _blur: EventEmitter<void> = new EventEmitter<void>();\n\n /** Event emitted every time the MatSliderThumb is focused. */\n @Output() readonly _focus: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Used to determine the disabled state of the MatSlider (ControlValueAccessor).\n * For ranged sliders, the disabled state of the MatSlider depends on the combined state of the\n * start and end inputs. See MatSlider._updateDisabled.\n */\n _disabled: boolean = false;\n\n /**\n * A callback function that is called when the\n * control's value changes in the UI (ControlValueAccessor).\n */\n _onChange: (value: any) => void = () => {};\n\n /**\n * A callback function that is called by the forms API on\n * initialization to update the form model on blur (ControlValueAccessor).\n */\n private _onTouched: () => void = () => {};\n\n /** Indicates which slider thumb this input corresponds to. */\n _thumbPosition: Thumb = this._elementRef.nativeElement.hasAttribute('matSliderStartThumb')\n ? Thumb.START\n : Thumb.END;\n\n /** The injected document if available or fallback to the global document reference. */\n private _document: Document;\n\n /** The host native HTML input element. */\n _hostElement: HTMLInputElement;\n\n constructor(\n @Inject(DOCUMENT) document: any,\n @Inject(forwardRef(() => MatSlider)) private readonly _slider: MatSlider,\n private readonly _elementRef: ElementRef<HTMLInputElement>) {\n this._document = document;\n this._hostElement = _elementRef.nativeElement;\n }\n\n ngOnInit() {\n // By calling this in ngOnInit() we guarantee that the sibling sliders initial value by\n // has already been set by the time we reach ngAfterViewInit().\n this._initializeInputValueAttribute();\n this._initializeAriaValueText();\n }\n\n ngAfterViewInit() {\n this._initializeInputState();\n this._initializeInputValueProperty();\n\n // Setup for the MDC foundation.\n if (this._slider.disabled) {\n this._hostElement.disabled = true;\n }\n }\n\n ngOnDestroy() {\n this.dragStart.complete();\n this.dragEnd.complete();\n this._focus.complete();\n this._blur.complete();\n this.valueChange.complete();\n }\n\n _onBlur(): void {\n this._onTouched();\n this._blur.emit();\n }\n\n _emitFakeEvent(type: 'change'|'input') {\n const event = new Event(type) as any;\n event._matIsHandled = true;\n this._hostElement.dispatchEvent(event);\n }\n\n /**\n * Sets the model value. Implemented as part of ControlValueAccessor.\n * @param value\n */\n writeValue(value: any): void {\n this.value = value;\n }\n\n /**\n * Registers a callback to be triggered when the value has changed.\n * Implemented as part of ControlValueAccessor.\n * @param fn Callback to be registered.\n */\n registerOnChange(fn: any): void {\n this._onChange = fn;\n }\n\n /**\n * Registers a callback to be triggered when the component is touched.\n * Implemented as part of ControlValueAccessor.\n * @param fn Callback to be registered.\n */\n registerOnTouched(fn: any): void {\n this._onTouched = fn;\n }\n\n /**\n * Sets whether the component should be disabled.\n * Implemented as part of ControlValueAccessor.\n * @param isDisabled\n */\n setDisabledState(isDisabled: boolean): void {\n this._disabled = isDisabled;\n this._slider._updateDisabled();\n }\n\n focus(): void {\n this._hostElement.focus();\n }\n\n blur(): void {\n this._hostElement.blur();\n }\n\n /** Returns true if this slider input currently has focus. */\n _isFocused(): boolean {\n return this._document.activeElement === this._hostElement;\n }\n\n /**\n * Sets the min, max, and step properties on the slider thumb input.\n *\n * Must be called AFTER the sibling slider thumb input is guaranteed to have had its value\n * attribute value set. For a range slider, the min and max of the slider thumb input depends on\n * the value of its sibling slider thumb inputs value.\n *\n * Must be called BEFORE the value property is set. In the case where the min and max have not\n * yet been set and we are setting the input value property to a value outside of the native\n * inputs default min or max. The value property would not be set to our desired value, but\n * instead be capped at either the default min or max.\n *\n */\n _initializeInputState(): void {\n const min = this._hostElement.hasAttribute('matSliderEndThumb')\n ? this._slider._getInput(Thumb.START).value\n : this._slider.min;\n const max = this._hostElement.hasAttribute('matSliderStartThumb')\n ? this._slider._getInput(Thumb.END).value\n : this._slider.max;\n this._hostElement.min = `${min}`;\n this._hostElement.max = `${max}`;\n this._hostElement.step = `${this._slider.step}`;\n }\n\n /**\n * Sets the value property on the slider thumb input.\n *\n * Must be called AFTER the min and max have been set. In the case where the min and max have not\n * yet been set and we are setting the input value property to a value outside of the native\n * inputs default min or max. The value property would not be set to our desired value, but\n * instead be capped at either the default min or max.\n */\n private _initializeInputValueProperty(): void {\n this._hostElement.value = `${this.value}`;\n }\n\n /**\n * Ensures the value attribute is initialized.\n *\n * Must be called BEFORE the min and max are set. For a range slider, the min and max of the\n * slider thumb input depends on the value of its sibling slider thumb inputs value.\n */\n private _initializeInputValueAttribute(): void {\n // Only set the default value if an initial value has not already been provided.\n if (!this._hostElement.hasAttribute('value')) {\n this.value = this._hostElement.hasAttribute('matSliderEndThumb')\n ? this._slider.max\n : this._slider.min;\n }\n }\n\n /**\n * Initializes the aria-valuetext attribute.\n *\n * Must be called AFTER the value attribute is set. This is because the slider's parent\n * `displayWith` function is used to set the `aria-valuetext` attribute.\n */\n private _initializeAriaValueText(): void {\n this._hostElement.setAttribute('aria-valuetext', this._slider.displayWith(this.value));\n }\n\n static ngAcceptInputType_value: NumberInput;\n}\n\n// Boilerplate for applying mixins to MatSlider.\nconst _MatSliderMixinBase = mixinColor(mixinDisableRipple(class {\n constructor(public _elementRef: ElementRef<HTMLElement>) {}\n}), 'primary');\n\n/**\n * Allows users to select from a range of values by moving the slider thumb. It is similar in\n * behavior to the native `<input type=\"range\">` element.\n */\n@Component({\n selector: 'mat-slider',\n templateUrl: 'slider.html',\n styleUrls: ['slider.css'],\n host: {\n 'class': 'mat-mdc-slider mdc-slider',\n '[class.mdc-slider--range]': '_isRange()',\n '[class.mdc-slider--disabled]': 'disabled',\n '[class.mdc-slider--discrete]': 'discrete',\n '[class.mdc-slider--tick-marks]': 'showTickMarks',\n '[class._mat-animation-noopable]': '_noopAnimations',\n },\n exportAs: 'matSlider',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n inputs: ['color', 'disableRipple'],\n})\nexport class MatSlider extends _MatSliderMixinBase\n implements AfterViewInit, CanDisableRipple, OnDestroy {\n /** The slider thumb(s). */\n @ViewChildren(MatSliderVisualThumb) _thumbs: QueryList<MatSliderVisualThumb>;\n\n /** The active section of the slider track. */\n @ViewChild('trackActive') _trackActive: ElementRef<HTMLElement>;\n\n /** The sliders hidden range input(s). */\n @ContentChildren(MatSliderThumb, {descendants: false})\n _inputs: QueryList<MatSliderThumb>;\n\n /** Whether the slider is disabled. */\n @Input()\n get disabled(): boolean { return this._disabled; }\n set disabled(v: boolean) {\n this._setDisabled(coerceBooleanProperty(v));\n this._updateInputsDisabledState();\n }\n private _disabled: boolean = false;\n\n /** Whether the slider displays a numeric value label upon pressing the thumb. */\n @Input()\n get discrete(): boolean { return this._discrete; }\n set discrete(v: boolean) { this._discrete = coerceBooleanProperty(v); }\n private _discrete: boolean = false;\n\n /** Whether the slider displays tick marks along the slider track. */\n @Input()\n get showTickMarks(): boolean { return this._showTickMarks; }\n set showTickMarks(v: boolean) { this._showTickMarks = coerceBooleanProperty(v); }\n private _showTickMarks: boolean = false;\n\n /** The minimum value that the slider can have. */\n @Input()\n get min(): number { return this._min; }\n set min(v: number) {\n this._min = coerceNumberProperty(v, this._min);\n this._reinitialize();\n }\n private _min: number = 0;\n\n /** The maximum value that the slider can have. */\n @Input()\n get max(): number { return this._max; }\n set max(v: number) {\n this._max = coerceNumberProperty(v, this._max);\n this._reinitialize();\n }\n private _max: number = 100;\n\n /** The values at which the thumb will snap. */\n @Input()\n get step(): number { return this._step; }\n set step(v: number) {\n this._step = coerceNumberProperty(v, this._step);\n this._reinitialize();\n }\n private _step: number = 1;\n\n /**\n * Function that will be used to format the value before it is displayed\n * in the thumb label. Can be used to format very large number in order\n * for them to fit into the slider thumb.\n */\n @Input() displayWith: ((value: number) => string) = (value: number) => `${value}`;\n\n /** Instance of the MDC slider foundation for this slider. */\n private _foundation = new MDCSliderFoundation(new SliderAdapter(this));\n\n /** Whether the foundation has been initialized. */\n _initialized: boolean = false;\n\n /** The injected document if available or fallback to the global document reference. */\n _document: Document;\n\n /**\n * The defaultView of the injected document if\n * available or fallback to global window reference.\n */\n _window: Window;\n\n /** Used to keep track of & render the active & inactive tick marks on the slider track. */\n _tickMarks: TickMark[];\n\n /** The display value of the start thumb. */\n _startValueIndicatorText: string;\n\n /** The display value of the end thumb. */\n _endValueIndicatorText: string;\n\n /** Whether animations have been disabled. */\n _noopAnimations: boolean;\n\n /**\n * Whether the browser supports pointer events.\n *\n * We exclude iOS to mirror the MDC Foundation. The MDC Foundation cannot use pointer events on\n * iOS because of this open bug - https://bugs.webkit.org/show_bug.cgi?id=220196.\n */\n private _SUPPORTS_POINTER_EVENTS = typeof PointerEvent !== 'undefined'\n && !!PointerEvent\n && !this._platform.IOS;\n\n /** Subscription to changes to the directionality (LTR / RTL) context for the application. */\n private _dirChangeSubscription: Subscription;\n\n constructor(\n readonly _ngZone: NgZone,\n readonly _cdr: ChangeDetectorRef,\n elementRef: ElementRef<HTMLElement>,\n private readonly _platform: Platform,\n readonly _globalChangeAndInputListener: GlobalChangeAndInputListener<'input'|'change'>,\n @Inject(DOCUMENT) document: any,\n @Optional() private _dir: Directionality,\n @Optional() @Inject(MAT_RIPPLE_GLOBAL_OPTIONS)\n readonly _globalRippleOptions?: RippleGlobalOptions,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {\n super(elementRef);\n this._document = document;\n this._window = this._document.defaultView || window;\n this._noopAnimations = animationMode === 'NoopAnimations';\n this._dirChangeSubscription = this._dir.change.subscribe(() => this._onDirChange());\n this._attachUISyncEventListener();\n }\n\n ngAfterViewInit() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _validateInputs(\n this._isRange(),\n this._getInputElement(Thumb.START),\n this._getInputElement(Thumb.END),\n );\n }\n if (this._platform.isBrowser) {\n this._foundation.init();\n this._foundation.layout();\n this._initialized = true;\n }\n // The MDC foundation requires access to the view and content children of the MatSlider. In\n // order to access the view and content children of MatSlider we need to wait until change\n // detection runs and materializes them. That is why we call init() and layout() in\n // ngAfterViewInit().\n //\n // The MDC foundation then uses the information it gathers from the DOM to compute an initial\n // value for the tickMarks array. It then tries to update the component data, but because it is\n // updating the component data AFTER change detection already ran, we will get a changed after\n // checked error. Because of this, we need to force change detection to update the UI with the\n // new state.\n this._cdr.detectChanges();\n }\n\n ngOnDestroy() {\n if (this._platform.isBrowser) {\n this._foundation.destroy();\n }\n this._dirChangeSubscription.unsubscribe();\n this._removeUISyncEventListener();\n }\n\n /** Returns true if the language direction for this slider element is right to left. */\n _isRTL() {\n return this._dir && this._dir.value === 'rtl';\n }\n\n /**\n * Attaches an event listener that keeps sync the slider UI and the foundation in sync.\n *\n * Because the MDC Foundation stores the value of the bounding client rect when layout is called,\n * we need to keep calling layout to avoid the position of the slider getting out of sync with\n * what the foundation has stored. If we don't do this, the foundation will not be able to\n * correctly calculate the slider value on click/slide.\n */\n _attachUISyncEventListener(): void {\n // Implementation detail: It may seem weird that we are using \"mouseenter\" instead of\n // \"mousedown\" as the default for when a browser does not support pointer events. While we\n // would prefer to use \"mousedown\" as the default, for some reason it does not work (the\n // callback is never triggered).\n if (this._SUPPORTS_POINTER_EVENTS) {\n this._elementRef.nativeElement.addEventListener('pointerdown', this._layout);\n } else {\n this._elementRef.nativeElement.addEventListener('mouseenter', this._layout);\n this._elementRef.nativeElement.addEventListener('touchstart', this._layout);\n }\n }\n\n /** Removes the event listener that keeps sync the slider UI and the foundation in sync. */\n _removeUISyncEventListener(): void {\n if (this._SUPPORTS_POINTER_EVENTS) {\n this._elementRef.nativeElement.removeEventListener('pointerdown', this._layout);\n } else {\n this._elementRef.nativeElement.removeEventListener('mouseenter', this._layout);\n this._elementRef.nativeElement.removeEventListener('touchstart', this._layout);\n }\n }\n\n /** Wrapper function for calling layout (needed for adding & removing an event listener). */\n private _layout = () => this._foundation.layout();\n\n /**\n * Reinitializes the slider foundation and input state(s).\n *\n * The MDC Foundation does not support changing some slider attributes after it has been\n * initialized (e.g. min, max, and step). To continue supporting this feature, we need to\n * destroy the foundation and re-initialize everything whenever we make these changes.\n */\n private _reinitialize(): void {\n if (this._initialized) {\n this._foundation.destroy();\n if (this._isRange()) {\n this._getInput(Thumb.START)._initializeInputState();\n }\n this._getInput(Thumb.END)._initializeInputState();\n this._foundation.init();\n this._foundation.layout();\n }\n }\n\n /** Handles updating the slider foundation after a dir change. */\n private _onDirChange(): void {\n this._ngZone.runOutsideAngular(() => {\n // We need to call layout() a few milliseconds after the dir change callback\n // because we need to wait until the bounding client rect of the slider has updated.\n setTimeout(() => this._foundation.layout(), 10);\n });\n }\n\n /** Sets the value of a slider thumb. */\n _setValue(value: number, thumbPosition: Thumb): void {\n thumbPosition === Thumb.START\n ? this._foundation.setValueStart(value)\n : this._foundation.setValue(value);\n }\n\n /** Sets the disabled state of the MatSlider. */\n private _setDisabled(value: boolean) {\n this._disabled = value;\n\n // If we want to disable the slider after the foundation has been initialized,\n // we need to inform the foundation by calling `setDisabled`. Also, we can't call\n // this before initializing the foundation because it will throw errors.\n if (this._initialized) {\n this._foundation.setDisabled(value);\n }\n }\n\n /** Sets the disabled state of the individual slider thumb(s) (ControlValueAccessor). */\n private _updateInputsDisabledState() {\n if (this._initialized) {\n this._getInput(Thumb.END)._disabled = true;\n if (this._isRange()) {\n this._getInput(Thumb.START)._disabled = true;\n }\n }\n }\n\n /** Whether this is a ranged slider. */\n _isRange(): boolean {\n return this._inputs.length === 2;\n }\n\n /** Sets the disabled state based on the disabled state of the inputs (ControlValueAccessor). */\n _updateDisabled(): void {\n const disabled = this._inputs.some(input => input._disabled);\n this._setDisabled(disabled);\n }\n\n /** Gets the slider thumb input of the given thumb position. */\n _getInput(thumbPosition: Thumb): MatSliderThumb {\n return thumbPosition === Thumb.END ? this._inputs.last : this._inputs.first;\n }\n\n /** Gets the slider thumb HTML input element of the given thumb position. */\n _getInputElement(thumbPosition: Thumb): HTMLInputElement {\n return this._getInput(thumbPosition)._hostElement;\n }\n\n _getThumb(thumbPosition: Thumb): MatSliderVisualThumb {\n return thumbPosition === Thumb.END ? this._thumbs.last : this._thumbs.first;\n }\n\n /** Gets the slider thumb HTML element of the given thumb position. */\n _getThumbElement(thumbPosition: Thumb): HTMLElement {\n return this._getThumb(thumbPosition)._getHostElement();\n }\n\n /** Gets the slider knob HTML element of the given thumb position. */\n _getKnobElement(thumbPosition: Thumb): HTMLElement {\n return this._getThumb(thumbPosition)._getKnob();\n }\n\n /**\n * Sets the value indicator text of the given thumb position using the given value.\n *\n * Uses the `displayWith` function if one has been provided. Otherwise, it just uses the\n * numeric value as a string.\n */\n _setValueIndicatorText(value: number, thumbPosition: Thumb) {\n thumbPosition === Thumb.START\n ? this._startValueIndicatorText = this.displayWith(value)\n : this._endValueIndicatorText = this.displayWith(value);\n this._cdr.markForCheck();\n }\n\n /** Gets the value indicator text for the given thumb position. */\n _getValueIndicatorText(thumbPosition: Thumb): string {\n return thumbPosition === Thumb.START\n ? this._startValueIndicatorText\n : this._endValueIndicatorText;\n }\n\n /** Determines the class name for a HTML element. */\n _getTickMarkClass(tickMark: TickMark): string {\n return tickMark === TickMark.ACTIVE\n ? 'mdc-slider__tick-mark--active'\n : 'mdc-slider__tick-mark--inactive';\n }\n\n /** Whether the slider thumb ripples should be disabled. */\n _isRippleDisabled(): boolean {\n return this.disabled || this.disableRipple || !!this._globalRippleOptions?.disabled;\n }\n\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_discrete: BooleanInput;\n static ngAcceptInputType_showTickMarks: BooleanInput;\n static ngAcceptInputType_min: NumberInput;\n static ngAcceptInputType_max: NumberInput;\n static ngAcceptInputType_step: NumberInput;\n static ngAcceptInputType_disableRipple: BooleanInput;\n}\n\n/** The MDCSliderAdapter implementation. */\nclass SliderAdapter implements MDCSliderAdapter {\n\n /** The global event listener subscription used to handle events on the slider inputs. */\n private _globalEventSubscriptions = new Subscription();\n\n /** The MDC Foundations handler function for start input change events. */\n private _startInputChangeEventHandler: SpecificEventListener<EventType>;\n\n /** The MDC Foundations handler function for end input change events. */\n private _endInputChangeEventHandler: SpecificEventListener<EventType>;\n\n constructor(private readonly _delegate: MatSlider) {\n this._globalEventSubscriptions.add(this._subscribeToSliderInputEvents('change'));\n this._globalEventSubscriptions.add(this._subscribeToSliderInputEvents('input'));\n }\n\n /**\n * Handles \"change\" and \"input\" events on the slider inputs.\n *\n * Exposes a callback to allow the MDC Foundations \"change\" event handler to be called for \"real\"\n * events.\n *\n * ** IMPORTANT NOTE **\n *\n * We block all \"real\" change and input events and emit fake events from #emitChangeEvent and\n * #emitInputEvent, instead. We do this because interacting with the MDC slider won't trigger all\n * of the correct change and input events, but it will call #emitChangeEvent and #emitInputEvent\n * at the correct times. This allows users to listen for these events directly on the slider\n * input as they would with a native range input.\n */\n private _subscribeToSliderInputEvents(type: 'change'|'input') {\n return this._delegate._globalChangeAndInputListener.listen(type, (event: Event) => {\n const thumbPosition = this._getInputThumbPosition(event.target);\n\n // Do nothing if the event isn't from a thumb input.\n if (thumbPosition === null) { return; }\n\n // Do nothing if the event is \"fake\".\n if ((event as any)._matIsHandled) { return ; }\n\n // Prevent \"real\" events from reaching end users.\n event.stopImmediatePropagation();\n\n // Relay \"real\" change events to the MDC Foundation.\n if (type === 'change') {\n this._callChangeEventHandler(event, thumbPosition);\n }\n });\n }\n\n /** Calls the MDC Foundations change event handler for the specified thumb position. */\n private _callChangeEventHandler(event: Event, thumbPosition: Thumb) {\n if (thumbPosition === Thumb.START) {\n this._startInputChangeEventHandler(event);\n } else {\n this._endInputChangeEventHandler(event);\n }\n }\n\n /** Save the event handler so it can be used in our global change event listener subscription. */\n private _saveChangeEventHandler(thumbPosition: Thumb, handler: SpecificEventListener<EventType>) {\n if (thumbPosition === Thumb.START) {\n this._startInputChangeEventHandler = handler;\n } else {\n this._endInputChangeEventHandler = handler;\n }\n }\n\n /**\n * Returns the thumb position of the given event target.\n * Returns null if the given event target does not correspond to a slider thumb input.\n */\n private _getInputThumbPosition(target: EventTarget | null): Thumb | null {\n if (target === this._delegate._getInputElement(Thumb.END)) {\n return Thumb.END;\n }\n if (this._delegate._isRange() && target === this._delegate._getInputElement(Thumb.START)) {\n return Thumb.START;\n }\n return null;\n }\n\n // We manually assign functions instead of using prototype methods because\n // MDC clobbers the values otherwise.\n // See https://github.com/material-components/material-components-web/pull/6256\n\n hasClass = (className: string): boolean => {\n return this._delegate._elementRef.nativeElement.classList.contains(className);\n }\n addClass = (className: string): void => {\n this._delegate._elementRef.nativeElement.classList.add(className);\n }\n removeClass = (className: string): void => {\n this._delegate._elementRef.nativeElement.classList.remove(className);\n }\n getAttribute = (attribute: string): string | null => {\n return this._delegate._elementRef.nativeElement.getAttribute(attribute);\n }\n addThumbClass = (className: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).classList.add(className);\n }\n removeThumbClass = (className: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).classList.remove(className);\n }\n getInputValue = (thumbPosition: Thumb): string => {\n return this._delegate._getInputElement(thumbPosition).value;\n }\n setInputValue = (value: string, thumbPosition: Thumb): void => {\n this._delegate._getInputElement(thumbPosition).value = value;\n }\n getInputAttribute = (attribute: string, thumbPosition: Thumb): string | null => {\n return this._delegate._getInputElement(thumbPosition).getAttribute(attribute);\n }\n setInputAttribute = (attribute: string, value: string, thumbPosition: Thumb): void => {\n const input = this._delegate._getInputElement(thumbPosition);\n\n // TODO(wagnermaciel): remove this check once this component is\n // added to the internal allowlist for calling setAttribute.\n\n // Explicitly check the attribute we are setting to prevent xss.\n switch (attribute) {\n case 'aria-valuetext':\n input.setAttribute('aria-valuetext', value);\n break;\n case 'disabled':\n input.setAttribute('disabled', value);\n break;\n case 'min':\n input.setAttribute('min', value);\n break;\n case 'max':\n input.setAttribute('max', value);\n break;\n case 'value':\n input.setAttribute('value', value);\n break;\n case 'step':\n input.setAttribute('step', value);\n break;\n default:\n throw Error(`Tried to set invalid attribute ${attribute} on the mdc-slider.`);\n }\n }\n removeInputAttribute = (attribute: string, thumbPosition: Thumb): void => {\n this._delegate._getInputElement(thumbPosition).removeAttribute(attribute);\n }\n focusInput = (thumbPosition: Thumb): void => {\n this._delegate._getInputElement(thumbPosition).focus();\n }\n isInputFocused = (thumbPosition: Thumb): boolean => {\n return this._delegate._getInput(thumbPosition)._isFocused();\n }\n getThumbKnobWidth = (thumbPosition: Thumb): number => {\n return this._delegate._getKnobElement(thumbPosition).getBoundingClientRect().width;\n }\n getThumbBoundingClientRect = (thumbPosition: Thumb): ClientRect => {\n return this._delegate._getThumbElement(thumbPosition).getBoundingClientRect();\n }\n getBoundingClientRect = (): ClientRect => {\n return this._delegate._elementRef.nativeElement.getBoundingClientRect();\n }\n isRTL = (): boolean => {\n return this._delegate._isRTL();\n }\n setThumbStyleProperty = (propertyName: string, value: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).style.setProperty(propertyName, value);\n }\n removeThumbStyleProperty = (propertyName: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).style.removeProperty(propertyName);\n }\n setTrackActiveStyleProperty = (propertyName: string, value: string): void => {\n this._delegate._trackActive.nativeElement.style.setProperty(propertyName, value);\n }\n removeTrackActiveStyleProperty = (propertyName: string): void => {\n this._delegate._trackActive.nativeElement.style.removeProperty(propertyName);\n }\n setValueIndicatorText = (value: number, thumbPosition: Thumb): void => {\n this._delegate._setValueIndicatorText(value, thumbPosition);\n }\n getValueToAriaValueTextFn = (): ((value: number) => string) | null => {\n return this._delegate.displayWith;\n }\n updateTickMarks = (tickMarks: TickMark[]): void => {\n this._delegate._tickMarks = tickMarks;\n this._delegate._cdr.markForCheck();\n }\n setPointerCapture = (pointerId: number): void => {\n this._delegate._elementRef.nativeElement.setPointerCapture(pointerId);\n }\n emitChangeEvent = (value: number, thumbPosition: Thumb): void => {\n // We block all real slider input change events and emit fake change events from here, instead.\n // We do this because the mdc implementation of the slider does not trigger real change events\n // on pointer up (only on left or right arrow key down).\n //\n // By stopping real change events from reaching users, and dispatching fake change events\n // (which we allow to reach the user) the slider inputs change events are triggered at the\n // appropriate times. This allows users to listen for change events directly on the slider\n // input as they would with a native range input.\n const input = this._delegate._getInput(thumbPosition);\n input._emitFakeEvent('change');\n input._onChange(value);\n input.valueChange.emit(value);\n }\n emitInputEvent = (value: number, thumbPosition: Thumb): void => {\n this._delegate._getInput(thumbPosition)._emitFakeEvent('input');\n }\n emitDragStartEvent = (value: number, thumbPosition: Thumb): void => {\n const input = this._delegate._getInput(thumbPosition);\n input.dragStart.emit({ source: input, parent: this._delegate, value });\n }\n emitDragEndEvent = (value: number, thumbPosition: Thumb): void => {\n const input = this._delegate._getInput(thumbPosition);\n input.dragEnd.emit({ source: input, parent: this._delegate, value });\n }\n registerEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._elementRef.nativeElement.addEventListener(evtType, handler);\n }\n deregisterEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._elementRef.nativeElement.removeEventListener(evtType, handler);\n }\n registerThumbEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._getThumbElement(thumbPosition).addEventListener(evtType, handler);\n }\n deregisterThumbEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._getThumbElement(thumbPosition).removeEventListener(evtType, handler);\n }\n registerInputEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n if (evtType === 'change') {\n this._saveChangeEventHandler(thumbPosition, handler as SpecificEventListener<EventType>);\n } else {\n this._delegate._getInputElement(thumbPosition).addEventListener(evtType, handler);\n }\n }\n deregisterInputEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n if (evtType === 'change') {\n this._globalEventSubscriptions.unsubscribe();\n } else {\n this._delegate._getInputElement(thumbPosition).removeEventListener(evtType, handler);\n }\n }\n registerBodyEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._document.body.addEventListener(evtType, handler);\n }\n deregisterBodyEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._document.body.removeEventListener(evtType, handler);\n }\n registerWindowEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._window.addEventListener(evtType, handler);\n }\n deregisterWindowEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._window.removeEventListener(evtType, handler);\n }\n}\n\n/**\n * Ensures that there is not an invalid configuration for the slider thumb inputs.\n */\nfunction _validateInputs(\n isRange: boolean,\n startInputElement: HTMLInputElement,\n endInputElement: HTMLInputElement): void {\n if (isRange) {\n if (!startInputElement.hasAttribute('matSliderStartThumb')) {\n _throwInvalidInputConfigurationError();\n }\n if (!endInputElement.hasAttribute('matSliderEndThumb')) {\n _throwInvalidInputConfigurationError();\n }\n } else {\n if (!endInputElement.hasAttribute('matSliderThumb')) {\n _throwInvalidInputConfigurationError();\n }\n }\n}\n\nfunction _throwInvalidInputConfigurationError(): void {\n throw Error(`Invalid slider thumb input configuration!\n\n Valid configurations are as follows:\n\n <mat-slider>\n <input matSliderThumb>\n </mat-slider>\n\n or\n\n <mat-slider>\n <input matSliderStartThumb>\n <input matSliderEndThumb>\n </mat-slider>\n `);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatCommonModule, MatRippleModule} from '@angular/material-experimental/mdc-core';\nimport {MatSlider, MatSliderThumb, MatSliderVisualThumb} from './slider';\n\n@NgModule({\n imports: [MatCommonModule, CommonModule, MatRippleModule],\n exports: [MatSlider, MatSliderThumb],\n declarations: [\n MatSlider,\n MatSliderThumb,\n MatSliderVisualThumb,\n ],\n})\nexport class MatSliderModule {\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {MatSlider, MatSliderThumb, MatSliderDragEvent} from './slider';\nexport {MatSliderModule} from './module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {GlobalChangeAndInputListener as ɵangular_material_src_material_experimental_mdc_slider_mdc_slider_b} from './global-change-and-input-listener';\nexport {MatSliderVisualThumb as ɵangular_material_src_material_experimental_mdc_slider_mdc_slider_a} from './slider';"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAcA;;;;;;;;MASa,4BAA4B;IAWvC,YAA8B,QAAa,EAAU,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;;QAL5D,iBAAY,GAAG,IAAI,GAAG,EAAwB,CAAC;;QAG/C,eAAU,GAAG,IAAI,OAAO,EAAE,CAAC;QAGjC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;KAC3B;IAED,WAAW;QACT,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;KAC3B;;IAGD,MAAM,CAAC,IAAO,EAAE,QAAkC;;QAEhD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAChC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC;SACtE;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,MACpC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,SAAS,CAAC,CAAC,KAAY,KAClD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,CAAC,CACxC,CACF,CAAC;KACH;;IAGO,4BAA4B,CAAC,IAAO;QAC1C,OAAO,SAAS,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,EAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,IAAI,CACzE,SAAS,CAAC,IAAI,CA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,mBAAmB,CAAC,EAAE;YACtD,oCAAoC,EAAE,CAAC;SACxC;KACF;SAAM;QACL,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;YACnD,oCAAoC,EAAE,CAAC;SACxC;KACF;AACH,CAAC;AAED,SAAS,oCAAoC;IAC3C,MAAM,KAAK,CAAC;;;;;;;;;;;;;;GAcX,CAAC,CAAC;AACL;;AC1pCA;;;;;;;MAsBa,eAAe;;;YAT3B,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,eAAe,CAAC;gBACzD,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC;gBACpC,YAAY,EAAE;oBACZ,SAAS;oBACT,cAAc;oBACd,oBAAoB;iBACrB;aACF;;;ACrBD;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"mdc-slider.js","sources":["../../../../../../src/material-experimental/mdc-slider/global-change-and-input-listener.ts","../../../../../../src/material-experimental/mdc-slider/slider.ts","../../../../../../src/material-experimental/mdc-slider/module.ts","../../../../../../src/material-experimental/mdc-slider/public-api.ts","../../../../../../src/material-experimental/mdc-slider/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable, NgZone, OnDestroy} from '@angular/core';\nimport {SpecificEventListener} from '@material/base';\nimport {fromEvent, Observable, Subject, Subscription} from 'rxjs';\nimport {finalize, share, takeUntil} from 'rxjs/operators';\n\n/**\n * Handles listening for all change and input events that occur on the document.\n *\n * This service exposes a single method #listen to allow users to subscribe to change and input\n * events that occur on the document. Since listening for these events can be expensive, we use\n * #fromEvent which will lazily attach a listener when the first subscription is made and remove the\n * listener once the last observer unsubscribes.\n */\n@Injectable({providedIn: 'root'})\nexport class GlobalChangeAndInputListener<K extends 'change'|'input'> implements OnDestroy {\n\n /** The injected document if available or fallback to the global document reference. */\n private _document: Document;\n\n /** Stores the subjects that emit the events that occur on the global document. */\n private _observables = new Map<K, Observable<Event>>();\n\n /** The notifier that triggers the global event observables to stop emitting and complete. */\n private _destroyed = new Subject();\n\n constructor(@Inject(DOCUMENT) document: any, private _ngZone: NgZone) {\n this._document = document;\n }\n\n ngOnDestroy() {\n this._destroyed.next();\n this._destroyed.complete();\n this._observables.clear();\n }\n\n /** Returns a subscription to global change or input events. */\n listen(type: K, callback: SpecificEventListener<K>): Subscription {\n // If this is the first time we are listening to this event, create the observable for it.\n if (!this._observables.has(type)) {\n this._observables.set(type, this._createGlobalEventObservable(type));\n }\n\n return this._ngZone.runOutsideAngular(() =>\n this._observables.get(type)!.subscribe((event: Event) =>\n this._ngZone.run(() => callback(event))\n )\n );\n }\n\n /** Creates an observable that emits all events of the given type. */\n private _createGlobalEventObservable(type: K) {\n return fromEvent(this._document, type, {capture: true, passive: true}).pipe(\n takeUntil(this._destroyed),\n finalize(() => this._observables.delete(type)),\n share(),\n );\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Directionality} from '@angular/cdk/bidi';\nimport {\n BooleanInput,\n coerceBooleanProperty,\n coerceNumberProperty,\n NumberInput\n} from '@angular/cdk/coercion';\nimport {Platform} from '@angular/cdk/platform';\nimport {DOCUMENT} from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n EventEmitter,\n forwardRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n QueryList,\n ViewChild,\n ViewChildren,\n ViewEncapsulation,\n} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {\n CanDisableRipple,\n MatRipple,\n MAT_RIPPLE_GLOBAL_OPTIONS,\n mixinColor,\n mixinDisableRipple,\n RippleAnimationConfig,\n RippleGlobalOptions,\n RippleRef,\n RippleState,\n} from '@angular/material/core';\nimport {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';\nimport {SpecificEventListener, EventType} from '@material/base';\nimport {MDCSliderAdapter, MDCSliderFoundation, Thumb, TickMark} from '@material/slider';\nimport {Subscription} from 'rxjs';\nimport {GlobalChangeAndInputListener} from './global-change-and-input-listener';\n\n/** Represents a drag event emitted by the MatSlider component. */\nexport interface MatSliderDragEvent {\n /** The MatSliderThumb that was interacted with. */\n source: MatSliderThumb;\n\n /** The MatSlider that was interacted with. */\n parent: MatSlider;\n\n /** The current value of the slider. */\n value: number;\n}\n\n/**\n * The visual slider thumb.\n *\n * Handles the slider thumb ripple states (hover, focus, and active),\n * and displaying the value tooltip on discrete sliders.\n * @docs-private\n */\n@Component({\n selector: 'mat-slider-visual-thumb',\n templateUrl: './slider-thumb.html',\n styleUrls: ['slider-thumb.css'],\n host: {\n 'class': 'mdc-slider__thumb mat-mdc-slider-visual-thumb',\n\n // NOTE: This class is used internally.\n // TODO(wagnermaciel): Remove this once it is handled by the mdc foundation (cl/388828896).\n '[class.mdc-slider__thumb--short-value]': '_isShortValue()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatSliderVisualThumb implements AfterViewInit, OnDestroy {\n /** Whether the slider displays a numeric value label upon pressing the thumb. */\n @Input() discrete: boolean;\n\n /** Indicates which slider thumb this input corresponds to. */\n @Input() thumbPosition: Thumb;\n\n /** The display value of the slider thumb. */\n @Input() valueIndicatorText: string;\n\n /** Whether ripples on the slider thumb should be disabled. */\n @Input() disableRipple: boolean = false;\n\n /** The MatRipple for this slider thumb. */\n @ViewChild(MatRipple) private readonly _ripple: MatRipple;\n\n /** The slider thumb knob */\n @ViewChild('knob') _knob: ElementRef<HTMLElement>;\n\n /** The slider input corresponding to this slider thumb. */\n private _sliderInput: MatSliderThumb;\n\n /** The RippleRef for the slider thumbs hover state. */\n private _hoverRippleRef: RippleRef | undefined;\n\n /** The RippleRef for the slider thumbs focus state. */\n private _focusRippleRef: RippleRef | undefined;\n\n /** The RippleRef for the slider thumbs active state. */\n private _activeRippleRef: RippleRef | undefined;\n\n /** Whether the slider thumb is currently being pressed. */\n private _isActive: boolean = false;\n\n /** Whether the slider thumb is currently being hovered. */\n private _isHovered: boolean = false;\n\n constructor(\n private readonly _ngZone: NgZone,\n @Inject(forwardRef(() => MatSlider)) private readonly _slider: MatSlider,\n private readonly _elementRef: ElementRef<HTMLElement>) {}\n\n ngAfterViewInit() {\n this._ripple.radius = 24;\n this._sliderInput = this._slider._getInput(this.thumbPosition);\n\n // Note that we don't unsubscribe from these, because they're complete on destroy.\n this._sliderInput.dragStart.subscribe(event => this._onDragStart(event));\n this._sliderInput.dragEnd.subscribe(event => this._onDragEnd(event));\n\n this._sliderInput._focus.subscribe(() => this._onFocus());\n this._sliderInput._blur.subscribe(() => this._onBlur());\n\n // These two listeners don't update any data bindings so we bind them\n // outside of the NgZone to prevent Angular from needlessly running change detection.\n this._ngZone.runOutsideAngular(() => {\n this._elementRef.nativeElement.addEventListener('mouseenter', this._onMouseEnter);\n this._elementRef.nativeElement.addEventListener('mouseleave', this._onMouseLeave);\n });\n }\n\n ngOnDestroy() {\n this._elementRef.nativeElement.removeEventListener('mouseenter', this._onMouseEnter);\n this._elementRef.nativeElement.removeEventListener('mouseleave', this._onMouseLeave);\n }\n\n /** Used to append a class to indicate when the value indicator text is short. */\n _isShortValue(): boolean {\n return this.valueIndicatorText?.length <= 2;\n }\n\n private _onMouseEnter = (): void => {\n this._isHovered = true;\n // We don't want to show the hover ripple on top of the focus ripple.\n // This can happen if the user tabs to a thumb and then the user moves their cursor over it.\n if (!this._isShowingRipple(this._focusRippleRef)) {\n this._showHoverRipple();\n }\n }\n\n private _onMouseLeave = (): void => {\n this._isHovered = false;\n this._hoverRippleRef?.fadeOut();\n }\n\n private _onFocus(): void {\n // We don't want to show the hover ripple on top of the focus ripple.\n // Happen when the users cursor is over a thumb and then the user tabs to it.\n this._hoverRippleRef?.fadeOut();\n this._showFocusRipple();\n }\n\n private _onBlur(): void {\n // Happens when the user tabs away while still dragging a thumb.\n if (!this._isActive) {\n this._focusRippleRef?.fadeOut();\n }\n // Happens when the user tabs away from a thumb but their cursor is still over it.\n if (this._isHovered) {\n this._showHoverRipple();\n }\n }\n\n private _onDragStart(event: MatSliderDragEvent): void {\n if (event.source._thumbPosition === this.thumbPosition) {\n this._isActive = true;\n this._showActiveRipple();\n }\n }\n\n private _onDragEnd(event: MatSliderDragEvent): void {\n if (event.source._thumbPosition === this.thumbPosition) {\n this._isActive = false;\n this._activeRippleRef?.fadeOut();\n // Happens when the user starts dragging a thumb, tabs away, and then stops dragging.\n if (!this._sliderInput._isFocused()) {\n this._focusRippleRef?.fadeOut();\n }\n }\n }\n\n /** Handles displaying the hover ripple. */\n private _showHoverRipple(): void {\n if (!this._isShowingRipple(this._hoverRippleRef)) {\n this._hoverRippleRef = this._showRipple({ enterDuration: 0, exitDuration: 0 });\n this._hoverRippleRef?.element.classList.add('mat-mdc-slider-hover-ripple');\n }\n }\n\n /** Handles displaying the focus ripple. */\n private _showFocusRipple(): void {\n // Show the focus ripple event if noop animations are enabled.\n if (!this._isShowingRipple(this._focusRippleRef)) {\n this._focusRippleRef = this._showRipple({ enterDuration: 0, exitDuration: 0 });\n this._focusRippleRef?.element.classList.add('mat-mdc-slider-focus-ripple');\n }\n }\n\n /** Handles displaying the active ripple. */\n private _showActiveRipple(): void {\n if (!this._isShowingRipple(this._activeRippleRef)) {\n this._activeRippleRef = this._showRipple({ enterDuration: 225, exitDuration: 400 });\n this._activeRippleRef?.element.classList.add('mat-mdc-slider-active-ripple');\n }\n }\n\n /** Whether the given rippleRef is currently fading in or visible. */\n private _isShowingRipple(rippleRef?: RippleRef): boolean {\n return rippleRef?.state === RippleState.FADING_IN || rippleRef?.state === RippleState.VISIBLE;\n }\n\n /** Manually launches the slider thumb ripple using the specified ripple animation config. */\n private _showRipple(animation: RippleAnimationConfig): RippleRef | undefined {\n if (this.disableRipple) {\n return;\n }\n return this._ripple.launch({\n animation: this._slider._noopAnimations ? {enterDuration: 0, exitDuration: 0} : animation,\n centered: true,\n persistent: true\n });\n }\n\n /** Gets the hosts native HTML element. */\n _getHostElement(): HTMLElement {\n return this._elementRef.nativeElement;\n }\n\n /** Gets the native HTML element of the slider thumb knob. */\n _getKnob(): HTMLElement {\n return this._knob.nativeElement;\n }\n}\n\n/**\n * Directive that adds slider-specific behaviors to an input element inside `<mat-slider>`.\n * Up to two may be placed inside of a `<mat-slider>`.\n *\n * If one is used, the selector `matSliderThumb` must be used, and the outcome will be a normal\n * slider. If two are used, the selectors `matSliderStartThumb` and `matSliderEndThumb` must be\n * used, and the outcome will be a range slider with two slider thumbs.\n */\n@Directive({\n selector: 'input[matSliderThumb], input[matSliderStartThumb], input[matSliderEndThumb]',\n exportAs: 'matSliderThumb',\n host: {\n 'class': 'mdc-slider__input',\n 'type': 'range',\n '(blur)': '_onBlur()',\n '(focus)': '_focus.emit()',\n },\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: MatSliderThumb,\n multi: true\n }],\n})\nexport class MatSliderThumb implements AfterViewInit, ControlValueAccessor, OnInit, OnDestroy {\n\n // ** IMPORTANT NOTE **\n //\n // The way `value` is implemented for MatSliderThumb doesn't follow typical Angular conventions.\n // Normally we would define a private variable `_value` as the source of truth for the value of\n // the slider thumb input. The source of truth for the value of the slider inputs has already\n // been decided for us by MDC to be the value attribute on the slider thumb inputs. This is\n // because the MDC foundation and adapter expect that the value attribute is the source of truth\n // for the slider inputs.\n //\n // Also, note that the value attribute is completely disconnected from the value property.\n\n /** The current value of this slider input. */\n @Input()\n get value(): number {\n return coerceNumberProperty(this._hostElement.getAttribute('value'));\n }\n set value(v: number) {\n const value = coerceNumberProperty(v);\n\n // If the foundation has already been initialized, we need to\n // relay any value updates to it so that it can update the UI.\n if (this._slider._initialized) {\n this._slider._setValue(value, this._thumbPosition);\n } else {\n // Setup for the MDC foundation.\n this._hostElement.setAttribute('value', `${value}`);\n }\n }\n\n /**\n * Emits when the raw value of the slider changes. This is here primarily\n * to facilitate the two-way binding for the `value` input.\n * @docs-private\n */\n @Output() readonly valueChange: EventEmitter<number> = new EventEmitter<number>();\n\n /** Event emitted when the slider thumb starts being dragged. */\n @Output() readonly dragStart: EventEmitter<MatSliderDragEvent>\n = new EventEmitter<MatSliderDragEvent>();\n\n /** Event emitted when the slider thumb stops being dragged. */\n @Output() readonly dragEnd: EventEmitter<MatSliderDragEvent>\n = new EventEmitter<MatSliderDragEvent>();\n\n /** Event emitted every time the MatSliderThumb is blurred. */\n @Output() readonly _blur: EventEmitter<void> = new EventEmitter<void>();\n\n /** Event emitted every time the MatSliderThumb is focused. */\n @Output() readonly _focus: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Used to determine the disabled state of the MatSlider (ControlValueAccessor).\n * For ranged sliders, the disabled state of the MatSlider depends on the combined state of the\n * start and end inputs. See MatSlider._updateDisabled.\n */\n _disabled: boolean = false;\n\n /**\n * A callback function that is called when the\n * control's value changes in the UI (ControlValueAccessor).\n */\n _onChange: (value: any) => void = () => {};\n\n /**\n * A callback function that is called by the forms API on\n * initialization to update the form model on blur (ControlValueAccessor).\n */\n private _onTouched: () => void = () => {};\n\n /** Indicates which slider thumb this input corresponds to. */\n _thumbPosition: Thumb = this._elementRef.nativeElement.hasAttribute('matSliderStartThumb')\n ? Thumb.START\n : Thumb.END;\n\n /** The injected document if available or fallback to the global document reference. */\n private _document: Document;\n\n /** The host native HTML input element. */\n _hostElement: HTMLInputElement;\n\n constructor(\n @Inject(DOCUMENT) document: any,\n @Inject(forwardRef(() => MatSlider)) private readonly _slider: MatSlider,\n private readonly _elementRef: ElementRef<HTMLInputElement>) {\n this._document = document;\n this._hostElement = _elementRef.nativeElement;\n }\n\n ngOnInit() {\n // By calling this in ngOnInit() we guarantee that the sibling sliders initial value by\n // has already been set by the time we reach ngAfterViewInit().\n this._initializeInputValueAttribute();\n this._initializeAriaValueText();\n }\n\n ngAfterViewInit() {\n this._initializeInputState();\n this._initializeInputValueProperty();\n\n // Setup for the MDC foundation.\n if (this._slider.disabled) {\n this._hostElement.disabled = true;\n }\n }\n\n ngOnDestroy() {\n this.dragStart.complete();\n this.dragEnd.complete();\n this._focus.complete();\n this._blur.complete();\n this.valueChange.complete();\n }\n\n _onBlur(): void {\n this._onTouched();\n this._blur.emit();\n }\n\n _emitFakeEvent(type: 'change'|'input') {\n const event = new Event(type) as any;\n event._matIsHandled = true;\n this._hostElement.dispatchEvent(event);\n }\n\n /**\n * Sets the model value. Implemented as part of ControlValueAccessor.\n * @param value\n */\n writeValue(value: any): void {\n this.value = value;\n }\n\n /**\n * Registers a callback to be triggered when the value has changed.\n * Implemented as part of ControlValueAccessor.\n * @param fn Callback to be registered.\n */\n registerOnChange(fn: any): void {\n this._onChange = fn;\n }\n\n /**\n * Registers a callback to be triggered when the component is touched.\n * Implemented as part of ControlValueAccessor.\n * @param fn Callback to be registered.\n */\n registerOnTouched(fn: any): void {\n this._onTouched = fn;\n }\n\n /**\n * Sets whether the component should be disabled.\n * Implemented as part of ControlValueAccessor.\n * @param isDisabled\n */\n setDisabledState(isDisabled: boolean): void {\n this._disabled = isDisabled;\n this._slider._updateDisabled();\n }\n\n focus(): void {\n this._hostElement.focus();\n }\n\n blur(): void {\n this._hostElement.blur();\n }\n\n /** Returns true if this slider input currently has focus. */\n _isFocused(): boolean {\n return this._document.activeElement === this._hostElement;\n }\n\n /**\n * Sets the min, max, and step properties on the slider thumb input.\n *\n * Must be called AFTER the sibling slider thumb input is guaranteed to have had its value\n * attribute value set. For a range slider, the min and max of the slider thumb input depends on\n * the value of its sibling slider thumb inputs value.\n *\n * Must be called BEFORE the value property is set. In the case where the min and max have not\n * yet been set and we are setting the input value property to a value outside of the native\n * inputs default min or max. The value property would not be set to our desired value, but\n * instead be capped at either the default min or max.\n *\n */\n _initializeInputState(): void {\n const min = this._hostElement.hasAttribute('matSliderEndThumb')\n ? this._slider._getInput(Thumb.START).value\n : this._slider.min;\n const max = this._hostElement.hasAttribute('matSliderStartThumb')\n ? this._slider._getInput(Thumb.END).value\n : this._slider.max;\n this._hostElement.min = `${min}`;\n this._hostElement.max = `${max}`;\n this._hostElement.step = `${this._slider.step}`;\n }\n\n /**\n * Sets the value property on the slider thumb input.\n *\n * Must be called AFTER the min and max have been set. In the case where the min and max have not\n * yet been set and we are setting the input value property to a value outside of the native\n * inputs default min or max. The value property would not be set to our desired value, but\n * instead be capped at either the default min or max.\n */\n private _initializeInputValueProperty(): void {\n this._hostElement.value = `${this.value}`;\n }\n\n /**\n * Ensures the value attribute is initialized.\n *\n * Must be called BEFORE the min and max are set. For a range slider, the min and max of the\n * slider thumb input depends on the value of its sibling slider thumb inputs value.\n */\n private _initializeInputValueAttribute(): void {\n // Only set the default value if an initial value has not already been provided.\n if (!this._hostElement.hasAttribute('value')) {\n this.value = this._hostElement.hasAttribute('matSliderEndThumb')\n ? this._slider.max\n : this._slider.min;\n }\n }\n\n /**\n * Initializes the aria-valuetext attribute.\n *\n * Must be called AFTER the value attribute is set. This is because the slider's parent\n * `displayWith` function is used to set the `aria-valuetext` attribute.\n */\n private _initializeAriaValueText(): void {\n this._hostElement.setAttribute('aria-valuetext', this._slider.displayWith(this.value));\n }\n\n static ngAcceptInputType_value: NumberInput;\n}\n\n// Boilerplate for applying mixins to MatSlider.\nconst _MatSliderMixinBase = mixinColor(mixinDisableRipple(class {\n constructor(public _elementRef: ElementRef<HTMLElement>) {}\n}), 'primary');\n\n/**\n * Allows users to select from a range of values by moving the slider thumb. It is similar in\n * behavior to the native `<input type=\"range\">` element.\n */\n@Component({\n selector: 'mat-slider',\n templateUrl: 'slider.html',\n styleUrls: ['slider.css'],\n host: {\n 'class': 'mat-mdc-slider mdc-slider',\n '[class.mdc-slider--range]': '_isRange()',\n '[class.mdc-slider--disabled]': 'disabled',\n '[class.mdc-slider--discrete]': 'discrete',\n '[class.mdc-slider--tick-marks]': 'showTickMarks',\n '[class._mat-animation-noopable]': '_noopAnimations',\n },\n exportAs: 'matSlider',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n inputs: ['color', 'disableRipple'],\n})\nexport class MatSlider extends _MatSliderMixinBase\n implements AfterViewInit, CanDisableRipple, OnDestroy {\n /** The slider thumb(s). */\n @ViewChildren(MatSliderVisualThumb) _thumbs: QueryList<MatSliderVisualThumb>;\n\n /** The active section of the slider track. */\n @ViewChild('trackActive') _trackActive: ElementRef<HTMLElement>;\n\n /** The sliders hidden range input(s). */\n @ContentChildren(MatSliderThumb, {descendants: false})\n _inputs: QueryList<MatSliderThumb>;\n\n /** Whether the slider is disabled. */\n @Input()\n get disabled(): boolean { return this._disabled; }\n set disabled(v: boolean) {\n this._setDisabled(coerceBooleanProperty(v));\n this._updateInputsDisabledState();\n }\n private _disabled: boolean = false;\n\n /** Whether the slider displays a numeric value label upon pressing the thumb. */\n @Input()\n get discrete(): boolean { return this._discrete; }\n set discrete(v: boolean) { this._discrete = coerceBooleanProperty(v); }\n private _discrete: boolean = false;\n\n /** Whether the slider displays tick marks along the slider track. */\n @Input()\n get showTickMarks(): boolean { return this._showTickMarks; }\n set showTickMarks(v: boolean) { this._showTickMarks = coerceBooleanProperty(v); }\n private _showTickMarks: boolean = false;\n\n /** The minimum value that the slider can have. */\n @Input()\n get min(): number { return this._min; }\n set min(v: number) {\n this._min = coerceNumberProperty(v, this._min);\n this._reinitialize();\n }\n private _min: number = 0;\n\n /** The maximum value that the slider can have. */\n @Input()\n get max(): number { return this._max; }\n set max(v: number) {\n this._max = coerceNumberProperty(v, this._max);\n this._reinitialize();\n }\n private _max: number = 100;\n\n /** The values at which the thumb will snap. */\n @Input()\n get step(): number { return this._step; }\n set step(v: number) {\n this._step = coerceNumberProperty(v, this._step);\n this._reinitialize();\n }\n private _step: number = 1;\n\n /**\n * Function that will be used to format the value before it is displayed\n * in the thumb label. Can be used to format very large number in order\n * for them to fit into the slider thumb.\n */\n @Input() displayWith: ((value: number) => string) = (value: number) => `${value}`;\n\n /** Instance of the MDC slider foundation for this slider. */\n private _foundation = new MDCSliderFoundation(new SliderAdapter(this));\n\n /** Whether the foundation has been initialized. */\n _initialized: boolean = false;\n\n /** The injected document if available or fallback to the global document reference. */\n _document: Document;\n\n /**\n * The defaultView of the injected document if\n * available or fallback to global window reference.\n */\n _window: Window;\n\n /** Used to keep track of & render the active & inactive tick marks on the slider track. */\n _tickMarks: TickMark[];\n\n /** The display value of the start thumb. */\n _startValueIndicatorText: string;\n\n /** The display value of the end thumb. */\n _endValueIndicatorText: string;\n\n /** Whether animations have been disabled. */\n _noopAnimations: boolean;\n\n /**\n * Whether the browser supports pointer events.\n *\n * We exclude iOS to mirror the MDC Foundation. The MDC Foundation cannot use pointer events on\n * iOS because of this open bug - https://bugs.webkit.org/show_bug.cgi?id=220196.\n */\n private _SUPPORTS_POINTER_EVENTS = typeof PointerEvent !== 'undefined'\n && !!PointerEvent\n && !this._platform.IOS;\n\n /** Subscription to changes to the directionality (LTR / RTL) context for the application. */\n private _dirChangeSubscription: Subscription;\n\n constructor(\n readonly _ngZone: NgZone,\n readonly _cdr: ChangeDetectorRef,\n elementRef: ElementRef<HTMLElement>,\n private readonly _platform: Platform,\n readonly _globalChangeAndInputListener: GlobalChangeAndInputListener<'input'|'change'>,\n @Inject(DOCUMENT) document: any,\n @Optional() private _dir: Directionality,\n @Optional() @Inject(MAT_RIPPLE_GLOBAL_OPTIONS)\n readonly _globalRippleOptions?: RippleGlobalOptions,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) animationMode?: string) {\n super(elementRef);\n this._document = document;\n this._window = this._document.defaultView || window;\n this._noopAnimations = animationMode === 'NoopAnimations';\n this._dirChangeSubscription = this._dir.change.subscribe(() => this._onDirChange());\n this._attachUISyncEventListener();\n }\n\n ngAfterViewInit() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n _validateInputs(\n this._isRange(),\n this._getInputElement(Thumb.START),\n this._getInputElement(Thumb.END),\n );\n }\n if (this._platform.isBrowser) {\n this._foundation.init();\n this._foundation.layout();\n this._initialized = true;\n }\n // The MDC foundation requires access to the view and content children of the MatSlider. In\n // order to access the view and content children of MatSlider we need to wait until change\n // detection runs and materializes them. That is why we call init() and layout() in\n // ngAfterViewInit().\n //\n // The MDC foundation then uses the information it gathers from the DOM to compute an initial\n // value for the tickMarks array. It then tries to update the component data, but because it is\n // updating the component data AFTER change detection already ran, we will get a changed after\n // checked error. Because of this, we need to force change detection to update the UI with the\n // new state.\n this._cdr.detectChanges();\n }\n\n ngOnDestroy() {\n if (this._platform.isBrowser) {\n this._foundation.destroy();\n }\n this._dirChangeSubscription.unsubscribe();\n this._removeUISyncEventListener();\n }\n\n /** Returns true if the language direction for this slider element is right to left. */\n _isRTL() {\n return this._dir && this._dir.value === 'rtl';\n }\n\n /**\n * Attaches an event listener that keeps sync the slider UI and the foundation in sync.\n *\n * Because the MDC Foundation stores the value of the bounding client rect when layout is called,\n * we need to keep calling layout to avoid the position of the slider getting out of sync with\n * what the foundation has stored. If we don't do this, the foundation will not be able to\n * correctly calculate the slider value on click/slide.\n */\n _attachUISyncEventListener(): void {\n // Implementation detail: It may seem weird that we are using \"mouseenter\" instead of\n // \"mousedown\" as the default for when a browser does not support pointer events. While we\n // would prefer to use \"mousedown\" as the default, for some reason it does not work (the\n // callback is never triggered).\n if (this._SUPPORTS_POINTER_EVENTS) {\n this._elementRef.nativeElement.addEventListener('pointerdown', this._layout);\n } else {\n this._elementRef.nativeElement.addEventListener('mouseenter', this._layout);\n this._elementRef.nativeElement.addEventListener('touchstart', this._layout);\n }\n }\n\n /** Removes the event listener that keeps sync the slider UI and the foundation in sync. */\n _removeUISyncEventListener(): void {\n if (this._SUPPORTS_POINTER_EVENTS) {\n this._elementRef.nativeElement.removeEventListener('pointerdown', this._layout);\n } else {\n this._elementRef.nativeElement.removeEventListener('mouseenter', this._layout);\n this._elementRef.nativeElement.removeEventListener('touchstart', this._layout);\n }\n }\n\n /** Wrapper function for calling layout (needed for adding & removing an event listener). */\n private _layout = () => this._foundation.layout();\n\n /**\n * Reinitializes the slider foundation and input state(s).\n *\n * The MDC Foundation does not support changing some slider attributes after it has been\n * initialized (e.g. min, max, and step). To continue supporting this feature, we need to\n * destroy the foundation and re-initialize everything whenever we make these changes.\n */\n private _reinitialize(): void {\n if (this._initialized) {\n this._foundation.destroy();\n if (this._isRange()) {\n this._getInput(Thumb.START)._initializeInputState();\n }\n this._getInput(Thumb.END)._initializeInputState();\n this._foundation.init();\n this._foundation.layout();\n }\n }\n\n /** Handles updating the slider foundation after a dir change. */\n private _onDirChange(): void {\n this._ngZone.runOutsideAngular(() => {\n // We need to call layout() a few milliseconds after the dir change callback\n // because we need to wait until the bounding client rect of the slider has updated.\n setTimeout(() => this._foundation.layout(), 10);\n });\n }\n\n /** Sets the value of a slider thumb. */\n _setValue(value: number, thumbPosition: Thumb): void {\n thumbPosition === Thumb.START\n ? this._foundation.setValueStart(value)\n : this._foundation.setValue(value);\n }\n\n /** Sets the disabled state of the MatSlider. */\n private _setDisabled(value: boolean) {\n this._disabled = value;\n\n // If we want to disable the slider after the foundation has been initialized,\n // we need to inform the foundation by calling `setDisabled`. Also, we can't call\n // this before initializing the foundation because it will throw errors.\n if (this._initialized) {\n this._foundation.setDisabled(value);\n }\n }\n\n /** Sets the disabled state of the individual slider thumb(s) (ControlValueAccessor). */\n private _updateInputsDisabledState() {\n if (this._initialized) {\n this._getInput(Thumb.END)._disabled = true;\n if (this._isRange()) {\n this._getInput(Thumb.START)._disabled = true;\n }\n }\n }\n\n /** Whether this is a ranged slider. */\n _isRange(): boolean {\n return this._inputs.length === 2;\n }\n\n /** Sets the disabled state based on the disabled state of the inputs (ControlValueAccessor). */\n _updateDisabled(): void {\n const disabled = this._inputs.some(input => input._disabled);\n this._setDisabled(disabled);\n }\n\n /** Gets the slider thumb input of the given thumb position. */\n _getInput(thumbPosition: Thumb): MatSliderThumb {\n return thumbPosition === Thumb.END ? this._inputs.last : this._inputs.first;\n }\n\n /** Gets the slider thumb HTML input element of the given thumb position. */\n _getInputElement(thumbPosition: Thumb): HTMLInputElement {\n return this._getInput(thumbPosition)._hostElement;\n }\n\n _getThumb(thumbPosition: Thumb): MatSliderVisualThumb {\n return thumbPosition === Thumb.END ? this._thumbs.last : this._thumbs.first;\n }\n\n /** Gets the slider thumb HTML element of the given thumb position. */\n _getThumbElement(thumbPosition: Thumb): HTMLElement {\n return this._getThumb(thumbPosition)._getHostElement();\n }\n\n /** Gets the slider knob HTML element of the given thumb position. */\n _getKnobElement(thumbPosition: Thumb): HTMLElement {\n return this._getThumb(thumbPosition)._getKnob();\n }\n\n /**\n * Sets the value indicator text of the given thumb position using the given value.\n *\n * Uses the `displayWith` function if one has been provided. Otherwise, it just uses the\n * numeric value as a string.\n */\n _setValueIndicatorText(value: number, thumbPosition: Thumb) {\n thumbPosition === Thumb.START\n ? this._startValueIndicatorText = this.displayWith(value)\n : this._endValueIndicatorText = this.displayWith(value);\n this._cdr.markForCheck();\n }\n\n /** Gets the value indicator text for the given thumb position. */\n _getValueIndicatorText(thumbPosition: Thumb): string {\n return thumbPosition === Thumb.START\n ? this._startValueIndicatorText\n : this._endValueIndicatorText;\n }\n\n /** Determines the class name for a HTML element. */\n _getTickMarkClass(tickMark: TickMark): string {\n return tickMark === TickMark.ACTIVE\n ? 'mdc-slider__tick-mark--active'\n : 'mdc-slider__tick-mark--inactive';\n }\n\n /** Whether the slider thumb ripples should be disabled. */\n _isRippleDisabled(): boolean {\n return this.disabled || this.disableRipple || !!this._globalRippleOptions?.disabled;\n }\n\n static ngAcceptInputType_disabled: BooleanInput;\n static ngAcceptInputType_discrete: BooleanInput;\n static ngAcceptInputType_showTickMarks: BooleanInput;\n static ngAcceptInputType_min: NumberInput;\n static ngAcceptInputType_max: NumberInput;\n static ngAcceptInputType_step: NumberInput;\n static ngAcceptInputType_disableRipple: BooleanInput;\n}\n\n/** The MDCSliderAdapter implementation. */\nclass SliderAdapter implements MDCSliderAdapter {\n\n /** The global event listener subscription used to handle events on the slider inputs. */\n private _globalEventSubscriptions = new Subscription();\n\n /** The MDC Foundations handler function for start input change events. */\n private _startInputChangeEventHandler: SpecificEventListener<EventType>;\n\n /** The MDC Foundations handler function for end input change events. */\n private _endInputChangeEventHandler: SpecificEventListener<EventType>;\n\n constructor(private readonly _delegate: MatSlider) {\n this._globalEventSubscriptions.add(this._subscribeToSliderInputEvents('change'));\n this._globalEventSubscriptions.add(this._subscribeToSliderInputEvents('input'));\n }\n\n /**\n * Handles \"change\" and \"input\" events on the slider inputs.\n *\n * Exposes a callback to allow the MDC Foundations \"change\" event handler to be called for \"real\"\n * events.\n *\n * ** IMPORTANT NOTE **\n *\n * We block all \"real\" change and input events and emit fake events from #emitChangeEvent and\n * #emitInputEvent, instead. We do this because interacting with the MDC slider won't trigger all\n * of the correct change and input events, but it will call #emitChangeEvent and #emitInputEvent\n * at the correct times. This allows users to listen for these events directly on the slider\n * input as they would with a native range input.\n */\n private _subscribeToSliderInputEvents(type: 'change'|'input') {\n return this._delegate._globalChangeAndInputListener.listen(type, (event: Event) => {\n const thumbPosition = this._getInputThumbPosition(event.target);\n\n // Do nothing if the event isn't from a thumb input.\n if (thumbPosition === null) { return; }\n\n // Do nothing if the event is \"fake\".\n if ((event as any)._matIsHandled) { return ; }\n\n // Prevent \"real\" events from reaching end users.\n event.stopImmediatePropagation();\n\n // Relay \"real\" change events to the MDC Foundation.\n if (type === 'change') {\n this._callChangeEventHandler(event, thumbPosition);\n }\n });\n }\n\n /** Calls the MDC Foundations change event handler for the specified thumb position. */\n private _callChangeEventHandler(event: Event, thumbPosition: Thumb) {\n if (thumbPosition === Thumb.START) {\n this._startInputChangeEventHandler(event);\n } else {\n this._endInputChangeEventHandler(event);\n }\n }\n\n /** Save the event handler so it can be used in our global change event listener subscription. */\n private _saveChangeEventHandler(thumbPosition: Thumb, handler: SpecificEventListener<EventType>) {\n if (thumbPosition === Thumb.START) {\n this._startInputChangeEventHandler = handler;\n } else {\n this._endInputChangeEventHandler = handler;\n }\n }\n\n /**\n * Returns the thumb position of the given event target.\n * Returns null if the given event target does not correspond to a slider thumb input.\n */\n private _getInputThumbPosition(target: EventTarget | null): Thumb | null {\n if (target === this._delegate._getInputElement(Thumb.END)) {\n return Thumb.END;\n }\n if (this._delegate._isRange() && target === this._delegate._getInputElement(Thumb.START)) {\n return Thumb.START;\n }\n return null;\n }\n\n // We manually assign functions instead of using prototype methods because\n // MDC clobbers the values otherwise.\n // See https://github.com/material-components/material-components-web/pull/6256\n\n hasClass = (className: string): boolean => {\n return this._delegate._elementRef.nativeElement.classList.contains(className);\n }\n addClass = (className: string): void => {\n this._delegate._elementRef.nativeElement.classList.add(className);\n }\n removeClass = (className: string): void => {\n this._delegate._elementRef.nativeElement.classList.remove(className);\n }\n getAttribute = (attribute: string): string | null => {\n return this._delegate._elementRef.nativeElement.getAttribute(attribute);\n }\n addThumbClass = (className: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).classList.add(className);\n }\n removeThumbClass = (className: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).classList.remove(className);\n }\n getInputValue = (thumbPosition: Thumb): string => {\n return this._delegate._getInputElement(thumbPosition).value;\n }\n setInputValue = (value: string, thumbPosition: Thumb): void => {\n this._delegate._getInputElement(thumbPosition).value = value;\n }\n getInputAttribute = (attribute: string, thumbPosition: Thumb): string | null => {\n return this._delegate._getInputElement(thumbPosition).getAttribute(attribute);\n }\n setInputAttribute = (attribute: string, value: string, thumbPosition: Thumb): void => {\n const input = this._delegate._getInputElement(thumbPosition);\n\n // TODO(wagnermaciel): remove this check once this component is\n // added to the internal allowlist for calling setAttribute.\n\n // Explicitly check the attribute we are setting to prevent xss.\n switch (attribute) {\n case 'aria-valuetext':\n input.setAttribute('aria-valuetext', value);\n break;\n case 'disabled':\n input.setAttribute('disabled', value);\n break;\n case 'min':\n input.setAttribute('min', value);\n break;\n case 'max':\n input.setAttribute('max', value);\n break;\n case 'value':\n input.setAttribute('value', value);\n break;\n case 'step':\n input.setAttribute('step', value);\n break;\n default:\n throw Error(`Tried to set invalid attribute ${attribute} on the mdc-slider.`);\n }\n }\n removeInputAttribute = (attribute: string, thumbPosition: Thumb): void => {\n this._delegate._getInputElement(thumbPosition).removeAttribute(attribute);\n }\n focusInput = (thumbPosition: Thumb): void => {\n this._delegate._getInputElement(thumbPosition).focus();\n }\n isInputFocused = (thumbPosition: Thumb): boolean => {\n return this._delegate._getInput(thumbPosition)._isFocused();\n }\n getThumbKnobWidth = (thumbPosition: Thumb): number => {\n return this._delegate._getKnobElement(thumbPosition).getBoundingClientRect().width;\n }\n getThumbBoundingClientRect = (thumbPosition: Thumb): ClientRect => {\n return this._delegate._getThumbElement(thumbPosition).getBoundingClientRect();\n }\n getBoundingClientRect = (): ClientRect => {\n return this._delegate._elementRef.nativeElement.getBoundingClientRect();\n }\n isRTL = (): boolean => {\n return this._delegate._isRTL();\n }\n setThumbStyleProperty = (propertyName: string, value: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).style.setProperty(propertyName, value);\n }\n removeThumbStyleProperty = (propertyName: string, thumbPosition: Thumb): void => {\n this._delegate._getThumbElement(thumbPosition).style.removeProperty(propertyName);\n }\n setTrackActiveStyleProperty = (propertyName: string, value: string): void => {\n this._delegate._trackActive.nativeElement.style.setProperty(propertyName, value);\n }\n removeTrackActiveStyleProperty = (propertyName: string): void => {\n this._delegate._trackActive.nativeElement.style.removeProperty(propertyName);\n }\n setValueIndicatorText = (value: number, thumbPosition: Thumb): void => {\n this._delegate._setValueIndicatorText(value, thumbPosition);\n }\n getValueToAriaValueTextFn = (): ((value: number) => string) | null => {\n return this._delegate.displayWith;\n }\n updateTickMarks = (tickMarks: TickMark[]): void => {\n this._delegate._tickMarks = tickMarks;\n this._delegate._cdr.markForCheck();\n }\n setPointerCapture = (pointerId: number): void => {\n this._delegate._elementRef.nativeElement.setPointerCapture(pointerId);\n }\n emitChangeEvent = (value: number, thumbPosition: Thumb): void => {\n // We block all real slider input change events and emit fake change events from here, instead.\n // We do this because the mdc implementation of the slider does not trigger real change events\n // on pointer up (only on left or right arrow key down).\n //\n // By stopping real change events from reaching users, and dispatching fake change events\n // (which we allow to reach the user) the slider inputs change events are triggered at the\n // appropriate times. This allows users to listen for change events directly on the slider\n // input as they would with a native range input.\n const input = this._delegate._getInput(thumbPosition);\n input._emitFakeEvent('change');\n input._onChange(value);\n input.valueChange.emit(value);\n }\n emitInputEvent = (value: number, thumbPosition: Thumb): void => {\n this._delegate._getInput(thumbPosition)._emitFakeEvent('input');\n }\n emitDragStartEvent = (value: number, thumbPosition: Thumb): void => {\n const input = this._delegate._getInput(thumbPosition);\n input.dragStart.emit({ source: input, parent: this._delegate, value });\n }\n emitDragEndEvent = (value: number, thumbPosition: Thumb): void => {\n const input = this._delegate._getInput(thumbPosition);\n input.dragEnd.emit({ source: input, parent: this._delegate, value });\n }\n registerEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._elementRef.nativeElement.addEventListener(evtType, handler);\n }\n deregisterEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._elementRef.nativeElement.removeEventListener(evtType, handler);\n }\n registerThumbEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._getThumbElement(thumbPosition).addEventListener(evtType, handler);\n }\n deregisterThumbEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._getThumbElement(thumbPosition).removeEventListener(evtType, handler);\n }\n registerInputEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n if (evtType === 'change') {\n this._saveChangeEventHandler(thumbPosition, handler as SpecificEventListener<EventType>);\n } else {\n this._delegate._getInputElement(thumbPosition).addEventListener(evtType, handler);\n }\n }\n deregisterInputEventHandler = <K extends EventType>\n (thumbPosition: Thumb, evtType: K, handler: SpecificEventListener<K>): void => {\n if (evtType === 'change') {\n this._globalEventSubscriptions.unsubscribe();\n } else {\n this._delegate._getInputElement(thumbPosition).removeEventListener(evtType, handler);\n }\n }\n registerBodyEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._document.body.addEventListener(evtType, handler);\n }\n deregisterBodyEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._document.body.removeEventListener(evtType, handler);\n }\n registerWindowEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._window.addEventListener(evtType, handler);\n }\n deregisterWindowEventHandler =\n <K extends EventType>(evtType: K, handler: SpecificEventListener<K>): void => {\n this._delegate._window.removeEventListener(evtType, handler);\n }\n}\n\n/**\n * Ensures that there is not an invalid configuration for the slider thumb inputs.\n */\nfunction _validateInputs(\n isRange: boolean,\n startInputElement: HTMLInputElement,\n endInputElement: HTMLInputElement): void {\n if (isRange) {\n if (!startInputElement.hasAttribute('matSliderStartThumb')) {\n _throwInvalidInputConfigurationError();\n }\n if (!endInputElement.hasAttribute('matSliderEndThumb')) {\n _throwInvalidInputConfigurationError();\n }\n } else {\n if (!endInputElement.hasAttribute('matSliderThumb')) {\n _throwInvalidInputConfigurationError();\n }\n }\n}\n\nfunction _throwInvalidInputConfigurationError(): void {\n throw Error(`Invalid slider thumb input configuration!\n\n Valid configurations are as follows:\n\n <mat-slider>\n <input matSliderThumb>\n </mat-slider>\n\n or\n\n <mat-slider>\n <input matSliderStartThumb>\n <input matSliderEndThumb>\n </mat-slider>\n `);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatCommonModule, MatRippleModule} from '@angular/material-experimental/mdc-core';\nimport {MatSlider, MatSliderThumb, MatSliderVisualThumb} from './slider';\n\n@NgModule({\n imports: [MatCommonModule, CommonModule, MatRippleModule],\n exports: [MatSlider, MatSliderThumb],\n declarations: [\n MatSlider,\n MatSliderThumb,\n MatSliderVisualThumb,\n ],\n})\nexport class MatSliderModule {\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {MatSlider, MatSliderThumb, MatSliderDragEvent} from './slider';\nexport {MatSliderModule} from './module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {GlobalChangeAndInputListener as ɵangular_material_src_material_experimental_mdc_slider_mdc_slider_b} from './global-change-and-input-listener';\nexport {MatSliderVisualThumb as ɵangular_material_src_material_experimental_mdc_slider_mdc_slider_a} from './slider';"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAcA;;;;;;;;MASa,4BAA4B;IAWvC,YAA8B,QAAa,EAAU,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;;QAL5D,iBAAY,GAAG,IAAI,GAAG,EAAwB,CAAC;;QAG/C,eAAU,GAAG,IAAI,OAAO,EAAE,CAAC;QAGjC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;KAC3B;IAED,WAAW;QACT,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;KAC3B;;IAGD,MAAM,CAAC,IAAO,EAAE,QAAkC;;QAEhD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAChC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAA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,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACzD,OAAO,KAAK,CAAC,GAAG,CAAC;SAClB;QACD,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACxF,OAAO,KAAK,CAAC,KAAK,CAAC;SACpB;QACD,OAAO,IAAI,CAAC;KACb;CAsLF;AAED;;;AAGA,SAAS,eAAe,CACtB,OAAgB,EAChB,iBAAmC,EACnC,eAAiC;IACjC,IAAI,OAAO,EAAE;QACX,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,qBAAqB,CAAC,EAAE;YAC1D,oCAAoC,EAAE,CAAC;SACxC;QACD,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,mBAAmB,CAAC,EAAE;YACtD,oCAAoC,EAAE,CAAC;SACxC;KACF;SAAM;QACL,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE;YACnD,oCAAoC,EAAE,CAAC;SACxC;KACF;AACH,CAAC;AAED,SAAS,oCAAoC;IAC3C,MAAM,KAAK,CAAC;;;;;;;;;;;;;;GAcX,CAAC,CAAC;AACL;;ACnqCA;;;;;;;MAsBa,eAAe;;;YAT3B,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,eAAe,EAAE,YAAY,EAAE,eAAe,CAAC;gBACzD,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC;gBACpC,YAAY,EAAE;oBACZ,SAAS;oBACT,cAAc;oBACd,oBAAoB;iBACrB;aACF;;;ACrBD;;;;;;;;ACAA;;;;;;"}
@@ -1,3 +1,4 @@
1
+ import { __awaiter } from 'tslib';
1
2
  import { HarnessPredicate } from '@angular/cdk/testing';
2
3
  import { MatSnackBarHarness as MatSnackBarHarness$1 } from '@angular/material/snack-bar/testing';
3
4
 
@@ -12,9 +13,8 @@ import { MatSnackBarHarness as MatSnackBarHarness$1 } from '@angular/material/sn
12
13
  class MatSnackBarHarness extends MatSnackBarHarness$1 {
13
14
  constructor() {
14
15
  super(...arguments);
15
- this._messageSelector = '.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label';
16
- this._simpleSnackBarSelector = '.mat-mdc-simple-snack-bar';
17
- this._actionButtonSelector = '.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-action';
16
+ this._messageSelector = '.mdc-snackbar__label';
17
+ this._actionButtonSelector = '.mat-mdc-snack-bar-action';
18
18
  }
19
19
  /**
20
20
  * Gets a `HarnessPredicate` that can be used to search for a `MatSnackBarHarness` that meets
@@ -25,6 +25,9 @@ class MatSnackBarHarness extends MatSnackBarHarness$1 {
25
25
  static with(options = {}) {
26
26
  return new HarnessPredicate(MatSnackBarHarness, options);
27
27
  }
28
+ _assertContentAnnotated() {
29
+ return __awaiter(this, void 0, void 0, function* () { });
30
+ }
28
31
  }
29
32
  // Developers can provide a custom component or template for the snackbar. The canonical snack-bar
30
33
  // parent is the "MatSnackBarContainer". We use `:not([mat-exit])` to exclude snack bars that
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-snack-bar__testing.js","sources":["../../../../../../src/material-experimental/mdc-snack-bar/testing/snack-bar-harness.ts","../../../../../../src/material-experimental/mdc-snack-bar/testing/public-api.ts","../../../../../../src/material-experimental/mdc-snack-bar/testing/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {HarnessPredicate} from '@angular/cdk/testing';\nimport {\n MatSnackBarHarness as BaseMatSnackBarHarness,\n SnackBarHarnessFilters,\n} from '@angular/material/snack-bar/testing';\n\n/** Harness for interacting with an MDC-based mat-snack-bar in tests. */\nexport class MatSnackBarHarness extends BaseMatSnackBarHarness {\n // Developers can provide a custom component or template for the snackbar. The canonical snack-bar\n // parent is the \"MatSnackBarContainer\". We use `:not([mat-exit])` to exclude snack bars that\n // are in the process of being dismissed, because the element only gets removed after the\n // animation is finished and since it runs outside of Angular, we don't have a way of being\n // notified when it's done.\n /** The selector for the host element of a `MatSnackBar` instance. */\n static override hostSelector = '.mat-mdc-snack-bar-container:not([mat-exit])';\n protected override _messageSelector = '.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label';\n protected override _simpleSnackBarSelector = '.mat-mdc-simple-snack-bar';\n protected override _actionButtonSelector = '.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-action';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatSnackBarHarness` that meets\n * certain criteria.\n * @param options Options for filtering which snack bar instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static override with(\n options: SnackBarHarnessFilters = {}): HarnessPredicate<BaseMatSnackBarHarness> {\n return new HarnessPredicate<BaseMatSnackBarHarness>(MatSnackBarHarness, options);\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './snack-bar-harness';\nexport {SnackBarHarnessFilters} from '@angular/material/snack-bar/testing';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":["BaseMatSnackBarHarness"],"mappings":";;;AAAA;;;;;;;AAcA;MACa,kBAAmB,SAAQA,oBAAsB;IAA9D;;QAQqB,qBAAgB,GAAG,oDAAoD,CAAC;QACxE,4BAAuB,GAAG,2BAA2B,CAAC;QACtD,0BAAqB,GAAG,qDAAqD,CAAC;KAYlG;;;;;;;IAJC,OAAgB,IAAI,CAChB,UAAkC,EAAE;QACtC,OAAO,IAAI,gBAAgB,CAAyB,kBAAkB,EAAE,OAAO,CAAC,CAAC;KAClF;;AApBD;AACA;AACA;AACA;AACA;AACA;AACgB,+BAAY,GAAG,8CAA8C;;ACtB/E;;;;;;;;ACAA;;;;;;;;;;"}
1
+ {"version":3,"file":"mdc-snack-bar__testing.js","sources":["../../../../../../src/material-experimental/mdc-snack-bar/testing/snack-bar-harness.ts","../../../../../../src/material-experimental/mdc-snack-bar/testing/public-api.ts","../../../../../../src/material-experimental/mdc-snack-bar/testing/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {HarnessPredicate} from '@angular/cdk/testing';\nimport {\n MatSnackBarHarness as BaseMatSnackBarHarness,\n SnackBarHarnessFilters,\n} from '@angular/material/snack-bar/testing';\n\n/** Harness for interacting with an MDC-based mat-snack-bar in tests. */\nexport class MatSnackBarHarness extends BaseMatSnackBarHarness {\n // Developers can provide a custom component or template for the snackbar. The canonical snack-bar\n // parent is the \"MatSnackBarContainer\". We use `:not([mat-exit])` to exclude snack bars that\n // are in the process of being dismissed, because the element only gets removed after the\n // animation is finished and since it runs outside of Angular, we don't have a way of being\n // notified when it's done.\n /** The selector for the host element of a `MatSnackBar` instance. */\n static override hostSelector = '.mat-mdc-snack-bar-container:not([mat-exit])';\n protected override _messageSelector = '.mdc-snackbar__label';\n protected override _actionButtonSelector = '.mat-mdc-snack-bar-action';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatSnackBarHarness` that meets\n * certain criteria.\n * @param options Options for filtering which snack bar instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static override with(\n options: SnackBarHarnessFilters = {}): HarnessPredicate<BaseMatSnackBarHarness> {\n return new HarnessPredicate<BaseMatSnackBarHarness>(MatSnackBarHarness, options);\n }\n\n protected override async _assertContentAnnotated() {}\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './snack-bar-harness';\nexport {SnackBarHarnessFilters} from '@angular/material/snack-bar/testing';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './public-api';\n"],"names":["BaseMatSnackBarHarness"],"mappings":";;;;AAAA;;;;;;;AAcA;MACa,kBAAmB,SAAQA,oBAAsB;IAA9D;;QAQqB,qBAAgB,GAAG,sBAAsB,CAAC;QAC1C,0BAAqB,GAAG,2BAA2B,CAAC;KAcxE;;;;;;;IANC,OAAgB,IAAI,CAChB,UAAkC,EAAE;QACtC,OAAO,IAAI,gBAAgB,CAAyB,kBAAkB,EAAE,OAAO,CAAC,CAAC;KAClF;IAEwB,uBAAuB;+DAAK;KAAA;;AArBrD;AACA;AACA;AACA;AACA;AACA;AACgB,+BAAY,GAAG,8CAA8C;;ACtB/E;;;;;;;;ACAA;;;;;;;;;;"}
@@ -170,8 +170,7 @@ class MatSnackBarContainer extends BasePortalOutlet {
170
170
  return this._portalOutlet.attachTemplatePortal(portal);
171
171
  }
172
172
  _setClass(cssClass, active) {
173
- const classList = this._elementRef.nativeElement.classList;
174
- active ? classList.add(cssClass) : classList.remove(cssClass);
173
+ this._elementRef.nativeElement.classList.toggle(cssClass, active);
175
174
  }
176
175
  /** Applies the user-configured CSS classes to the snack bar. */
177
176
  _applySnackBarClasses() {
@@ -1 +1 @@
1
- {"version":3,"file":"mdc-snack-bar.js","sources":["../../../../../../src/material-experimental/mdc-snack-bar/simple-snack-bar.ts","../../../../../../src/material-experimental/mdc-snack-bar/snack-bar-container.ts","../../../../../../src/material-experimental/mdc-snack-bar/snack-bar-content.ts","../../../../../../src/material-experimental/mdc-snack-bar/module.ts","../../../../../../src/material-experimental/mdc-snack-bar/snack-bar.ts","../../../../../../src/material-experimental/mdc-snack-bar/public-api.ts","../../../../../../src/material-experimental/mdc-snack-bar/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ChangeDetectionStrategy, Component, Inject, ViewEncapsulation} from '@angular/core';\nimport {\n MAT_SNACK_BAR_DATA,\n TextOnlySnackBar,\n MatSnackBarRef,\n SimpleSnackBar\n} from '@angular/material/snack-bar';\n\n@Component({\n selector: 'mat-simple-snack-bar',\n templateUrl: 'simple-snack-bar.html',\n styleUrls: ['simple-snack-bar.css'],\n exportAs: 'matSnackBar',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'mat-mdc-simple-snack-bar',\n }\n})\nexport class MatSimpleSnackBar implements TextOnlySnackBar {\n constructor(\n public snackBarRef: MatSnackBarRef<SimpleSnackBar>,\n @Inject(MAT_SNACK_BAR_DATA) public data: {message: string, action: string}) {\n }\n\n /** Performs the action on the snack bar. */\n action(): void {\n this.snackBarRef.dismissWithAction();\n }\n\n /** If the action button should be shown. */\n get hasAction(): boolean {\n return !!this.data.action;\n }\n}\n\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {AriaLivePoliteness} from '@angular/cdk/a11y';\nimport {\n BasePortalOutlet,\n CdkPortalOutlet,\n ComponentPortal,\n TemplatePortal\n} from '@angular/cdk/portal';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n ElementRef,\n EmbeddedViewRef,\n Inject,\n NgZone,\n OnDestroy,\n Optional,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {MatSnackBarConfig, _SnackBarContainer} from '@angular/material/snack-bar';\nimport {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';\nimport {MDCSnackbarAdapter, MDCSnackbarFoundation} from '@material/snackbar';\nimport {Platform} from '@angular/cdk/platform';\nimport {Observable, Subject} from 'rxjs';\n\n/**\n * The MDC label class that should wrap the label content of the snack bar.\n * @docs-private\n */\nconst MDC_SNACKBAR_LABEL_CLASS = 'mdc-snackbar__label';\n\n/**\n * Internal component that wraps user-provided snack bar content.\n * @docs-private\n */\n@Component({\n selector: 'mat-snack-bar-container',\n templateUrl: 'snack-bar-container.html',\n styleUrls: ['snack-bar-container.css'],\n // In Ivy embedded views will be change detected from their declaration place, rather than\n // where they were stamped out. This means that we can't have the snack bar container be OnPush,\n // because it might cause snack bars that were opened from a template not to be out of date.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'mdc-snackbar mat-mdc-snack-bar-container',\n '[class.mat-snack-bar-container]': 'false',\n // Mark this element with a 'mat-exit' attribute to indicate that the snackbar has\n // been dismissed and will soon be removed from the DOM. This is used by the snackbar\n // test harness.\n '[attr.mat-exit]': `_exiting ? '' : null`,\n '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n }\n})\nexport class MatSnackBarContainer extends BasePortalOutlet\n implements _SnackBarContainer, AfterViewChecked, OnDestroy {\n /** The number of milliseconds to wait before announcing the snack bar's content. */\n private readonly _announceDelay: number = 150;\n\n /** The timeout for announcing the snack bar's content. */\n private _announceTimeoutId: number;\n\n /** Subject for notifying that the snack bar has announced to screen readers. */\n readonly _onAnnounce: Subject<void> = new Subject();\n\n /** Subject for notifying that the snack bar has exited from view. */\n readonly _onExit: Subject<void> = new Subject();\n\n /** Subject for notifying that the snack bar has finished entering the view. */\n readonly _onEnter: Subject<void> = new Subject();\n\n /** aria-live value for the live region. */\n _live: AriaLivePoliteness;\n\n /** Whether the snack bar is currently exiting. */\n _exiting = false;\n\n /**\n * Role of the live region. This is only for Firefox as there is a known issue where Firefox +\n * JAWS does not read out aria-live message.\n */\n _role?: 'status' | 'alert';\n\n private _mdcAdapter: MDCSnackbarAdapter = {\n addClass: (className: string) => this._setClass(className, true),\n removeClass: (className: string) => this._setClass(className, false),\n announce: () => {},\n notifyClosed: () => {\n this._onExit.next();\n this._mdcFoundation.destroy();\n },\n notifyClosing: () => {},\n notifyOpened: () => this._onEnter.next(),\n notifyOpening: () => {},\n };\n\n _mdcFoundation = new MDCSnackbarFoundation(this._mdcAdapter);\n\n /** The portal outlet inside of this container into which the snack bar content will be loaded. */\n @ViewChild(CdkPortalOutlet, {static: true}) _portalOutlet: CdkPortalOutlet;\n\n /** Element that acts as the MDC surface container which should contain the label and actions. */\n @ViewChild('surface', {static: true}) _surface: ElementRef;\n\n /**\n * Element that will have the `mdc-snackbar__label` class applied if the attached component\n * or template does not have it. This ensures that the appropriate structure, typography, and\n * color is applied to the attached view.\n */\n @ViewChild('label', {static: true}) _label: ElementRef;\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n public snackBarConfig: MatSnackBarConfig,\n private _platform: Platform,\n private _ngZone: NgZone,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string) {\n super();\n\n // Use aria-live rather than a live role like 'alert' or 'status'\n // because NVDA and JAWS have show inconsistent behavior with live roles.\n if (snackBarConfig.politeness === 'assertive' && !snackBarConfig.announcementMessage) {\n this._live = 'assertive';\n } else if (snackBarConfig.politeness === 'off') {\n this._live = 'off';\n } else {\n this._live = 'polite';\n }\n\n // Only set role for Firefox. Set role based on aria-live because setting role=\"alert\" implies\n // aria-live=\"assertive\" which may cause issues if aria-live is set to \"polite\" above.\n if (this._platform.FIREFOX) {\n if (this._live === 'polite') {\n this._role = 'status';\n }\n if (this._live === 'assertive') {\n this._role = 'alert';\n }\n }\n\n // `MatSnackBar` will use the config's timeout to determine when the snack bar should be closed.\n // Set this to `-1` to mark it as indefinitely open so that MDC does not close itself.\n this._mdcFoundation.setTimeoutMs(-1);\n }\n\n ngAfterViewChecked() {\n // Check to see if the attached component or template uses the MDC template structure,\n // specifically the MDC label. If not, the container should apply the MDC label class to this\n // component's label container, which will apply MDC's label styles to the attached view.\n if (!this._label.nativeElement.querySelector(`.${MDC_SNACKBAR_LABEL_CLASS}`)) {\n this._label.nativeElement.classList.add(MDC_SNACKBAR_LABEL_CLASS);\n } else {\n this._label.nativeElement.classList.remove(MDC_SNACKBAR_LABEL_CLASS);\n }\n }\n\n /** Makes sure the exit callbacks have been invoked when the element is destroyed. */\n ngOnDestroy() {\n this._mdcFoundation.close();\n }\n\n enter() {\n // MDC uses some browser APIs that will throw during server-side rendering.\n if (this._platform.isBrowser) {\n this._mdcFoundation.open();\n this._screenReaderAnnounce();\n }\n }\n\n exit(): Observable<void> {\n this._exiting = true;\n this._mdcFoundation.close();\n\n // If the snack bar hasn't been announced by the time it exits it wouldn't have been open\n // long enough to visually read it either, so clear the timeout for announcing.\n clearTimeout(this._announceTimeoutId);\n\n return this._onExit;\n }\n\n /** Attach a component portal as content to this snack bar container. */\n attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T> {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachComponentPortal(portal);\n }\n\n /** Attach a template portal as content to this snack bar container. */\n attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C> {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachTemplatePortal(portal);\n }\n\n private _setClass(cssClass: string, active: boolean) {\n const classList = this._elementRef.nativeElement.classList;\n active ? classList.add(cssClass) : classList.remove(cssClass);\n }\n\n /** Applies the user-configured CSS classes to the snack bar. */\n private _applySnackBarClasses() {\n const panelClasses = this.snackBarConfig.panelClass;\n if (panelClasses) {\n if (Array.isArray(panelClasses)) {\n // Note that we can't use a spread here, because IE doesn't support multiple arguments.\n panelClasses.forEach(cssClass => this._setClass(cssClass, true));\n } else {\n this._setClass(panelClasses, true);\n }\n }\n }\n\n /** Asserts that no content is already attached to the container. */\n private _assertNotAttached() {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Attempting to attach snack bar content after content is already attached');\n }\n }\n\n /**\n * Starts a timeout to move the snack bar content to the live region so screen readers will\n * announce it.\n */\n private _screenReaderAnnounce() {\n if (!this._announceTimeoutId) {\n this._ngZone.runOutsideAngular(() => {\n this._announceTimeoutId = setTimeout(() => {\n const inertElement = this._elementRef.nativeElement.querySelector('[aria-hidden]');\n const liveElement = this._elementRef.nativeElement.querySelector('[aria-live]');\n\n if (inertElement && liveElement) {\n // If an element in the snack bar content is focused before being moved\n // track it and restore focus after moving to the live region.\n let focusedElement: HTMLElement | null = null;\n if (document.activeElement instanceof HTMLElement &&\n inertElement.contains(document.activeElement)) {\n focusedElement = document.activeElement;\n }\n\n inertElement.removeAttribute('aria-hidden');\n liveElement.appendChild(inertElement);\n focusedElement?.focus();\n\n this._onAnnounce.next();\n this._onAnnounce.complete();\n }\n }, this._announceDelay);\n });\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Directive} from '@angular/core';\n\n/** Directive that should be applied to the text element to be rendered in the snack bar. */\n@Directive({\n selector: `[matSnackBarLabel]`,\n host: {\n 'class': 'mat-mdc-snack-bar-label mdc-snackbar__label',\n }\n})\nexport class MatSnackBarLabel {}\n\n/** Directive that should be applied to the element containing the snack bar's action buttons. */\n@Directive({\n selector: `[matSnackBarActions]`,\n host: {\n 'class': 'mat-mdc-snack-bar-actions mdc-snackbar__actions',\n }\n})\nexport class MatSnackBarActions {}\n\n/** Directive that should be applied to each of the snack bar's action buttons. */\n@Directive({\n selector: `[matSnackBarAction]`,\n host: {\n 'class': 'mat-mdc-snack-bar-action mdc-snackbar__action',\n }\n})\nexport class MatSnackBarAction {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {PortalModule} from '@angular/cdk/portal';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatButtonModule} from '@angular/material-experimental/mdc-button';\nimport {MatCommonModule} from '@angular/material-experimental/mdc-core';\n\nimport {MatSimpleSnackBar} from './simple-snack-bar';\nimport {MatSnackBarContainer} from './snack-bar-container';\nimport {\n MatSnackBarAction,\n MatSnackBarActions,\n MatSnackBarLabel\n} from './snack-bar-content';\n\n@NgModule({\n imports: [\n OverlayModule,\n PortalModule,\n CommonModule,\n MatButtonModule,\n MatCommonModule,\n ],\n exports: [\n MatCommonModule,\n MatSnackBarContainer,\n MatSnackBarLabel,\n MatSnackBarActions,\n MatSnackBarAction,\n ],\n declarations: [\n MatSimpleSnackBar,\n MatSnackBarContainer,\n MatSnackBarLabel,\n MatSnackBarActions,\n MatSnackBarAction,\n ],\n entryComponents: [\n MatSimpleSnackBar,\n MatSnackBarContainer,\n ],\n})\nexport class MatSnackBarModule {\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Injectable} from '@angular/core';\nimport {MatSnackBar as BaseMatSnackBar} from '@angular/material/snack-bar';\nimport {MatSnackBarModule} from './module';\nimport {MatSimpleSnackBar} from './simple-snack-bar';\nimport {MatSnackBarContainer} from './snack-bar-container';\n\n/**\n * Service to dispatch Material Design snack bar messages.\n */\n@Injectable({providedIn: MatSnackBarModule})\nexport class MatSnackBar extends BaseMatSnackBar {\n protected override simpleSnackBarComponent = MatSimpleSnackBar;\n protected override snackBarContainerComponent = MatSnackBarContainer;\n protected override handsetCssClass = 'mat-mdc-snack-bar-handset';\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './simple-snack-bar';\nexport * from './snack-bar-container';\nexport * from './snack-bar-content';\nexport * from './snack-bar';\nexport * from './module';\n\nexport {\n MatSnackBarConfig,\n MatSnackBarDismiss,\n MatSnackBarRef,\n SimpleSnackBar,\n MAT_SNACK_BAR_DATA,\n MAT_SNACK_BAR_DEFAULT_OPTIONS,\n MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY,\n MatSnackBarHorizontalPosition,\n MatSnackBarVerticalPosition,\n TextOnlySnackBar,\n matSnackBarAnimations,\n} from '@angular/material/snack-bar';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["BaseMatSnackBar"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;MA2Ba,iBAAiB;IAC5B,YACW,WAA2C,EACf,IAAuC;QADnE,gBAAW,GAAX,WAAW,CAAgC;QACf,SAAI,GAAJ,IAAI,CAAmC;KAC7E;;IAGD,MAAM;QACJ,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC;KACtC;;IAGD,IAAI,SAAS;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3B;;;YAzBF,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,wNAAoC;gBAEpC,QAAQ,EAAE,aAAa;gBACvB,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,0BAA0B;iBACpC;;aACF;;;YAdC,cAAc;4CAkBT,MAAM,SAAC,kBAAkB;;;AC9BhC;;;;;;;AAmCA;;;;AAIA,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAEvD;;;;MAwBa,oBAAqB,SAAQ,gBAAgB;IAyDxD,YACY,WAAoC,EACrC,cAAiC,EAChC,SAAmB,EACnB,OAAe,EAC2B,cAAuB;QAC3E,KAAK,EAAE,CAAC;QALE,gBAAW,GAAX,WAAW,CAAyB;QACrC,mBAAc,GAAd,cAAc,CAAmB;QAChC,cAAS,GAAT,SAAS,CAAU;QACnB,YAAO,GAAP,OAAO,CAAQ;QAC2B,mBAAc,GAAd,cAAc,CAAS;;QA3D5D,mBAAc,GAAW,GAAG,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AAI,EAAE;oBACJ,OAAO,EAAE,iDAAiD;iBAC3D;aACF;;AAGD;MAOa,iBAAiB;;;YAN7B,SAAS,SAAC;gBACT,QAAQ,EAAE,qBAAqB;gBAC/B,IAAI,EAAE;oBACJ,OAAO,EAAE,+CAA+C;iBACzD;aACF;;;AClCD;;;;;;;MAkDa,iBAAiB;;;YA3B7B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,aAAa;oBACb,YAAY;oBACZ,YAAY;oBACZ,eAAe;oBACf,eAAe;iBAChB;gBACD,OAAO,EAAE;oBACP,eAAe;oBACf,oBAAoB;oBACpB,gBAAgB;oBAChB,kBAAkB;oBAClB,iBAAiB;iBAClB;gBACD,YAAY,EAAE;oBACZ,iBAAiB;oBACjB,oBAAoB;oBACpB,gBAAgB;oBAChB,kBAAkB;oBAClB,iBAAiB;iBAClB;gBACD,eAAe,EAAE;oBACf,iBAAiB;oBACjB,oBAAoB;iBACrB;aACF;;;ACjDD;;;;;;;AAcA;;;MAIa,WAAY,SAAQA,aAAe;IADhD;;QAEqB,4BAAuB,GAAG,iBAAiB,CAAC;QAC5C,+BAA0B,GAAG,oBAAoB,CAAC;QAClD,oBAAe,GAAG,2BAA2B,CAAC;KAClE;;;;YALA,UAAU,SAAC,EAAC,UAAU,EAAE,iBAAiB,EAAC;;;ACjB3C;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"mdc-snack-bar.js","sources":["../../../../../../src/material-experimental/mdc-snack-bar/simple-snack-bar.ts","../../../../../../src/material-experimental/mdc-snack-bar/snack-bar-container.ts","../../../../../../src/material-experimental/mdc-snack-bar/snack-bar-content.ts","../../../../../../src/material-experimental/mdc-snack-bar/module.ts","../../../../../../src/material-experimental/mdc-snack-bar/snack-bar.ts","../../../../../../src/material-experimental/mdc-snack-bar/public-api.ts","../../../../../../src/material-experimental/mdc-snack-bar/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {ChangeDetectionStrategy, Component, Inject, ViewEncapsulation} from '@angular/core';\nimport {\n MAT_SNACK_BAR_DATA,\n TextOnlySnackBar,\n MatSnackBarRef,\n SimpleSnackBar\n} from '@angular/material/snack-bar';\n\n@Component({\n selector: 'mat-simple-snack-bar',\n templateUrl: 'simple-snack-bar.html',\n styleUrls: ['simple-snack-bar.css'],\n exportAs: 'matSnackBar',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'mat-mdc-simple-snack-bar',\n }\n})\nexport class MatSimpleSnackBar implements TextOnlySnackBar {\n constructor(\n public snackBarRef: MatSnackBarRef<SimpleSnackBar>,\n @Inject(MAT_SNACK_BAR_DATA) public data: {message: string, action: string}) {\n }\n\n /** Performs the action on the snack bar. */\n action(): void {\n this.snackBarRef.dismissWithAction();\n }\n\n /** If the action button should be shown. */\n get hasAction(): boolean {\n return !!this.data.action;\n }\n}\n\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {AriaLivePoliteness} from '@angular/cdk/a11y';\nimport {\n BasePortalOutlet,\n CdkPortalOutlet,\n ComponentPortal,\n TemplatePortal\n} from '@angular/cdk/portal';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n ElementRef,\n EmbeddedViewRef,\n Inject,\n NgZone,\n OnDestroy,\n Optional,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport {MatSnackBarConfig, _SnackBarContainer} from '@angular/material/snack-bar';\nimport {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';\nimport {MDCSnackbarAdapter, MDCSnackbarFoundation} from '@material/snackbar';\nimport {Platform} from '@angular/cdk/platform';\nimport {Observable, Subject} from 'rxjs';\n\n/**\n * The MDC label class that should wrap the label content of the snack bar.\n * @docs-private\n */\nconst MDC_SNACKBAR_LABEL_CLASS = 'mdc-snackbar__label';\n\n/**\n * Internal component that wraps user-provided snack bar content.\n * @docs-private\n */\n@Component({\n selector: 'mat-snack-bar-container',\n templateUrl: 'snack-bar-container.html',\n styleUrls: ['snack-bar-container.css'],\n // In Ivy embedded views will be change detected from their declaration place, rather than\n // where they were stamped out. This means that we can't have the snack bar container be OnPush,\n // because it might cause snack bars that were opened from a template not to be out of date.\n // tslint:disable-next-line:validate-decorators\n changeDetection: ChangeDetectionStrategy.Default,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'mdc-snackbar mat-mdc-snack-bar-container',\n '[class.mat-snack-bar-container]': 'false',\n // Mark this element with a 'mat-exit' attribute to indicate that the snackbar has\n // been dismissed and will soon be removed from the DOM. This is used by the snackbar\n // test harness.\n '[attr.mat-exit]': `_exiting ? '' : null`,\n '[class._mat-animation-noopable]': `_animationMode === 'NoopAnimations'`,\n }\n})\nexport class MatSnackBarContainer extends BasePortalOutlet\n implements _SnackBarContainer, AfterViewChecked, OnDestroy {\n /** The number of milliseconds to wait before announcing the snack bar's content. */\n private readonly _announceDelay: number = 150;\n\n /** The timeout for announcing the snack bar's content. */\n private _announceTimeoutId: number;\n\n /** Subject for notifying that the snack bar has announced to screen readers. */\n readonly _onAnnounce: Subject<void> = new Subject();\n\n /** Subject for notifying that the snack bar has exited from view. */\n readonly _onExit: Subject<void> = new Subject();\n\n /** Subject for notifying that the snack bar has finished entering the view. */\n readonly _onEnter: Subject<void> = new Subject();\n\n /** aria-live value for the live region. */\n _live: AriaLivePoliteness;\n\n /** Whether the snack bar is currently exiting. */\n _exiting = false;\n\n /**\n * Role of the live region. This is only for Firefox as there is a known issue where Firefox +\n * JAWS does not read out aria-live message.\n */\n _role?: 'status' | 'alert';\n\n private _mdcAdapter: MDCSnackbarAdapter = {\n addClass: (className: string) => this._setClass(className, true),\n removeClass: (className: string) => this._setClass(className, false),\n announce: () => {},\n notifyClosed: () => {\n this._onExit.next();\n this._mdcFoundation.destroy();\n },\n notifyClosing: () => {},\n notifyOpened: () => this._onEnter.next(),\n notifyOpening: () => {},\n };\n\n _mdcFoundation = new MDCSnackbarFoundation(this._mdcAdapter);\n\n /** The portal outlet inside of this container into which the snack bar content will be loaded. */\n @ViewChild(CdkPortalOutlet, {static: true}) _portalOutlet: CdkPortalOutlet;\n\n /** Element that acts as the MDC surface container which should contain the label and actions. */\n @ViewChild('surface', {static: true}) _surface: ElementRef;\n\n /**\n * Element that will have the `mdc-snackbar__label` class applied if the attached component\n * or template does not have it. This ensures that the appropriate structure, typography, and\n * color is applied to the attached view.\n */\n @ViewChild('label', {static: true}) _label: ElementRef;\n\n constructor(\n private _elementRef: ElementRef<HTMLElement>,\n public snackBarConfig: MatSnackBarConfig,\n private _platform: Platform,\n private _ngZone: NgZone,\n @Optional() @Inject(ANIMATION_MODULE_TYPE) public _animationMode?: string) {\n super();\n\n // Use aria-live rather than a live role like 'alert' or 'status'\n // because NVDA and JAWS have show inconsistent behavior with live roles.\n if (snackBarConfig.politeness === 'assertive' && !snackBarConfig.announcementMessage) {\n this._live = 'assertive';\n } else if (snackBarConfig.politeness === 'off') {\n this._live = 'off';\n } else {\n this._live = 'polite';\n }\n\n // Only set role for Firefox. Set role based on aria-live because setting role=\"alert\" implies\n // aria-live=\"assertive\" which may cause issues if aria-live is set to \"polite\" above.\n if (this._platform.FIREFOX) {\n if (this._live === 'polite') {\n this._role = 'status';\n }\n if (this._live === 'assertive') {\n this._role = 'alert';\n }\n }\n\n // `MatSnackBar` will use the config's timeout to determine when the snack bar should be closed.\n // Set this to `-1` to mark it as indefinitely open so that MDC does not close itself.\n this._mdcFoundation.setTimeoutMs(-1);\n }\n\n ngAfterViewChecked() {\n // Check to see if the attached component or template uses the MDC template structure,\n // specifically the MDC label. If not, the container should apply the MDC label class to this\n // component's label container, which will apply MDC's label styles to the attached view.\n if (!this._label.nativeElement.querySelector(`.${MDC_SNACKBAR_LABEL_CLASS}`)) {\n this._label.nativeElement.classList.add(MDC_SNACKBAR_LABEL_CLASS);\n } else {\n this._label.nativeElement.classList.remove(MDC_SNACKBAR_LABEL_CLASS);\n }\n }\n\n /** Makes sure the exit callbacks have been invoked when the element is destroyed. */\n ngOnDestroy() {\n this._mdcFoundation.close();\n }\n\n enter() {\n // MDC uses some browser APIs that will throw during server-side rendering.\n if (this._platform.isBrowser) {\n this._mdcFoundation.open();\n this._screenReaderAnnounce();\n }\n }\n\n exit(): Observable<void> {\n this._exiting = true;\n this._mdcFoundation.close();\n\n // If the snack bar hasn't been announced by the time it exits it wouldn't have been open\n // long enough to visually read it either, so clear the timeout for announcing.\n clearTimeout(this._announceTimeoutId);\n\n return this._onExit;\n }\n\n /** Attach a component portal as content to this snack bar container. */\n attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T> {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachComponentPortal(portal);\n }\n\n /** Attach a template portal as content to this snack bar container. */\n attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C> {\n this._assertNotAttached();\n this._applySnackBarClasses();\n return this._portalOutlet.attachTemplatePortal(portal);\n }\n\n private _setClass(cssClass: string, active: boolean) {\n this._elementRef.nativeElement.classList.toggle(cssClass, active);\n }\n\n /** Applies the user-configured CSS classes to the snack bar. */\n private _applySnackBarClasses() {\n const panelClasses = this.snackBarConfig.panelClass;\n if (panelClasses) {\n if (Array.isArray(panelClasses)) {\n // Note that we can't use a spread here, because IE doesn't support multiple arguments.\n panelClasses.forEach(cssClass => this._setClass(cssClass, true));\n } else {\n this._setClass(panelClasses, true);\n }\n }\n }\n\n /** Asserts that no content is already attached to the container. */\n private _assertNotAttached() {\n if (this._portalOutlet.hasAttached() && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw Error('Attempting to attach snack bar content after content is already attached');\n }\n }\n\n /**\n * Starts a timeout to move the snack bar content to the live region so screen readers will\n * announce it.\n */\n private _screenReaderAnnounce() {\n if (!this._announceTimeoutId) {\n this._ngZone.runOutsideAngular(() => {\n this._announceTimeoutId = setTimeout(() => {\n const inertElement = this._elementRef.nativeElement.querySelector('[aria-hidden]');\n const liveElement = this._elementRef.nativeElement.querySelector('[aria-live]');\n\n if (inertElement && liveElement) {\n // If an element in the snack bar content is focused before being moved\n // track it and restore focus after moving to the live region.\n let focusedElement: HTMLElement | null = null;\n if (document.activeElement instanceof HTMLElement &&\n inertElement.contains(document.activeElement)) {\n focusedElement = document.activeElement;\n }\n\n inertElement.removeAttribute('aria-hidden');\n liveElement.appendChild(inertElement);\n focusedElement?.focus();\n\n this._onAnnounce.next();\n this._onAnnounce.complete();\n }\n }, this._announceDelay);\n });\n }\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Directive} from '@angular/core';\n\n/** Directive that should be applied to the text element to be rendered in the snack bar. */\n@Directive({\n selector: `[matSnackBarLabel]`,\n host: {\n 'class': 'mat-mdc-snack-bar-label mdc-snackbar__label',\n }\n})\nexport class MatSnackBarLabel {}\n\n/** Directive that should be applied to the element containing the snack bar's action buttons. */\n@Directive({\n selector: `[matSnackBarActions]`,\n host: {\n 'class': 'mat-mdc-snack-bar-actions mdc-snackbar__actions',\n }\n})\nexport class MatSnackBarActions {}\n\n/** Directive that should be applied to each of the snack bar's action buttons. */\n@Directive({\n selector: `[matSnackBarAction]`,\n host: {\n 'class': 'mat-mdc-snack-bar-action mdc-snackbar__action',\n }\n})\nexport class MatSnackBarAction {}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {PortalModule} from '@angular/cdk/portal';\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatButtonModule} from '@angular/material-experimental/mdc-button';\nimport {MatCommonModule} from '@angular/material-experimental/mdc-core';\n\nimport {MatSimpleSnackBar} from './simple-snack-bar';\nimport {MatSnackBarContainer} from './snack-bar-container';\nimport {\n MatSnackBarAction,\n MatSnackBarActions,\n MatSnackBarLabel\n} from './snack-bar-content';\n\n@NgModule({\n imports: [\n OverlayModule,\n PortalModule,\n CommonModule,\n MatButtonModule,\n MatCommonModule,\n ],\n exports: [\n MatCommonModule,\n MatSnackBarContainer,\n MatSnackBarLabel,\n MatSnackBarActions,\n MatSnackBarAction,\n ],\n declarations: [\n MatSimpleSnackBar,\n MatSnackBarContainer,\n MatSnackBarLabel,\n MatSnackBarActions,\n MatSnackBarAction,\n ],\n entryComponents: [\n MatSimpleSnackBar,\n MatSnackBarContainer,\n ],\n})\nexport class MatSnackBarModule {\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Injectable} from '@angular/core';\nimport {MatSnackBar as BaseMatSnackBar} from '@angular/material/snack-bar';\nimport {MatSnackBarModule} from './module';\nimport {MatSimpleSnackBar} from './simple-snack-bar';\nimport {MatSnackBarContainer} from './snack-bar-container';\n\n/**\n * Service to dispatch Material Design snack bar messages.\n */\n@Injectable({providedIn: MatSnackBarModule})\nexport class MatSnackBar extends BaseMatSnackBar {\n protected override simpleSnackBarComponent = MatSimpleSnackBar;\n protected override snackBarContainerComponent = MatSnackBarContainer;\n protected override handsetCssClass = 'mat-mdc-snack-bar-handset';\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport * from './simple-snack-bar';\nexport * from './snack-bar-container';\nexport * from './snack-bar-content';\nexport * from './snack-bar';\nexport * from './module';\n\nexport {\n MatSnackBarConfig,\n MatSnackBarDismiss,\n MatSnackBarRef,\n SimpleSnackBar,\n MAT_SNACK_BAR_DATA,\n MAT_SNACK_BAR_DEFAULT_OPTIONS,\n MAT_SNACK_BAR_DEFAULT_OPTIONS_FACTORY,\n MatSnackBarHorizontalPosition,\n MatSnackBarVerticalPosition,\n TextOnlySnackBar,\n matSnackBarAnimations,\n} from '@angular/material/snack-bar';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["BaseMatSnackBar"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;MA2Ba,iBAAiB;IAC5B,YACW,WAA2C,EACf,IAAuC;QADnE,gBAAW,GAAX,WAAW,CAAgC;QACf,SAAI,GAAJ,IAAI,CAAmC;KAC7E;;IAGD,MAAM;QACJ,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC;KACtC;;IAGD,IAAI,SAAS;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;KAC3B;;;YAzBF,SAAS,SAAC;gBACT,QAAQ,EAAE,sBAAsB;gBAChC,wNAAoC;gBAEpC,QAAQ,EAAE,aAAa;gBACvB,aAAa,EAAE,iBAAiB,CAAC,IAAI;gBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,IAAI,EAAE;oBACJ,OAAO,EAAE,0BAA0B;iBACpC;;aACF;;;YAdC,cAAc;4CAkBT,MAAM,SAAC,kBAAkB;;;AC9BhC;;;;;;;AAmCA;;;;AAIA,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAEvD;;;;MAwBa,oBAAqB,SAAQ,gBAAgB;IAyDxD,YACY,WAAoC,EACrC,cAAiC,EAChC,SAAmB,EACnB,OAAe,EAC2B,cAAuB;QAC3E,KAAK,EAAE,CAAC;QALE,gBAAW,GAAX,WAAW,CAAyB;QACrC,mBAAc,GAAd,cAAc,CAAmB;QAChC,cAAS,GAAT,SAAS,CAAU;QACnB,YAAO,GAAP,OAAO,CAAQ;QAC2B,mBAAc,GAAd,cAAc,CAAS;;QA3D5D,mBAAc,GAAW,GAAG,CAAC;;QAMrC,gBAAW,GAAkB,IAAI,O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AqB;gBAC/B,IAAI,EAAE;oBACJ,OAAO,EAAE,+CAA+C;iBACzD;aACF;;;AClCD;;;;;;;MAkDa,iBAAiB;;;YA3B7B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,aAAa;oBACb,YAAY;oBACZ,YAAY;oBACZ,eAAe;oBACf,eAAe;iBAChB;gBACD,OAAO,EAAE;oBACP,eAAe;oBACf,oBAAoB;oBACpB,gBAAgB;oBAChB,kBAAkB;oBAClB,iBAAiB;iBAClB;gBACD,YAAY,EAAE;oBACZ,iBAAiB;oBACjB,oBAAoB;oBACpB,gBAAgB;oBAChB,kBAAkB;oBAClB,iBAAiB;iBAClB;gBACD,eAAe,EAAE;oBACf,iBAAiB;oBACjB,oBAAoB;iBACrB;aACF;;;ACjDD;;;;;;;AAcA;;;MAIa,WAAY,SAAQA,aAAe;IADhD;;QAEqB,4BAAuB,GAAG,iBAAiB,CAAC;QAC5C,+BAA0B,GAAG,oBAAoB,CAAC;QAClD,oBAAe,GAAG,2BAA2B,CAAC;KAClE;;;;YALA,UAAU,SAAC,EAAC,UAAU,EAAE,iBAAiB,EAAC;;;ACjB3C;;;;;;;;ACAA;;;;;;"}
@@ -67,7 +67,7 @@ MatTable.decorators = [
67
67
  // See note on CdkTable for explanation on why this uses the default change detection strategy.
68
68
  // tslint:disable-next-line:validate-decorators
69
69
  changeDetection: ChangeDetectionStrategy.Default,
70
- styles: [".mdc-data-table{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid;-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button.mdc-icon-button--touch{margin-top:0;margin-bottom:0}.mdc-data-table__sort-icon-button.mdc-icon-button--touch .mdc-icon-button__touch{display:none}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:#fff;background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:80px;min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-deprecated-list-item{height:36px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\"\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"]
70
+ styles: [".mdc-data-table{border-radius:4px;border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid;-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button.mdc-icon-button--touch{margin-top:0;margin-bottom:0}.mdc-data-table__sort-icon-button.mdc-icon-button--touch .mdc-icon-button__touch{display:none}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:#fff;background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:80px;min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\"\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"]
71
71
  },] }
72
72
  ];
73
73