@angular/cdk 21.0.0-next.9 → 21.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/_adev_assets/cdk_drag_drop.json +13 -12
  2. package/_adev_assets/cdk_testing.json +9 -9
  3. package/_adev_assets/cdk_testing_protractor.json +1 -1
  4. package/_adev_assets/cdk_testing_selenium_webdriver.json +1 -1
  5. package/_adev_assets/cdk_testing_testbed.json +1 -1
  6. package/fesm2022/_a11y-module-chunk.mjs +755 -869
  7. package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
  8. package/fesm2022/_activedescendant-key-manager-chunk.mjs +8 -8
  9. package/fesm2022/_activedescendant-key-manager-chunk.mjs.map +1 -1
  10. package/fesm2022/_array-chunk.mjs +1 -1
  11. package/fesm2022/_array-chunk.mjs.map +1 -1
  12. package/fesm2022/_breakpoints-observer-chunk.mjs +149 -152
  13. package/fesm2022/_breakpoints-observer-chunk.mjs.map +1 -1
  14. package/fesm2022/_css-pixel-value-chunk.mjs +4 -5
  15. package/fesm2022/_css-pixel-value-chunk.mjs.map +1 -1
  16. package/fesm2022/_data-source-chunk.mjs +2 -8
  17. package/fesm2022/_data-source-chunk.mjs.map +1 -1
  18. package/fesm2022/_directionality-chunk.mjs +54 -54
  19. package/fesm2022/_directionality-chunk.mjs.map +1 -1
  20. package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs +25 -36
  21. package/fesm2022/_dispose-view-repeater-strategy-chunk.mjs.map +1 -1
  22. package/fesm2022/_element-chunk.mjs +6 -17
  23. package/fesm2022/_element-chunk.mjs.map +1 -1
  24. package/fesm2022/_fake-event-detection-chunk.mjs +3 -17
  25. package/fesm2022/_fake-event-detection-chunk.mjs.map +1 -1
  26. package/fesm2022/_focus-key-manager-chunk.mjs +10 -14
  27. package/fesm2022/_focus-key-manager-chunk.mjs.map +1 -1
  28. package/fesm2022/_focus-monitor-chunk.mjs +376 -566
  29. package/fesm2022/_focus-monitor-chunk.mjs.map +1 -1
  30. package/fesm2022/_id-generator-chunk.mjs +36 -27
  31. package/fesm2022/_id-generator-chunk.mjs.map +1 -1
  32. package/fesm2022/_keycodes-chunk.mjs +9 -9
  33. package/fesm2022/_keycodes-chunk.mjs.map +1 -1
  34. package/fesm2022/_list-key-manager-chunk.mjs +248 -336
  35. package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
  36. package/fesm2022/_overlay-module-chunk.mjs +2534 -2948
  37. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  38. package/fesm2022/_passive-listeners-chunk.mjs +10 -22
  39. package/fesm2022/_passive-listeners-chunk.mjs.map +1 -1
  40. package/fesm2022/_platform-chunk.mjs +42 -65
  41. package/fesm2022/_platform-chunk.mjs.map +1 -1
  42. package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs +78 -134
  43. package/fesm2022/_recycle-view-repeater-strategy-chunk.mjs.map +1 -1
  44. package/fesm2022/_scrolling-chunk.mjs +44 -85
  45. package/fesm2022/_scrolling-chunk.mjs.map +1 -1
  46. package/fesm2022/_selection-model-chunk.mjs +138 -209
  47. package/fesm2022/_selection-model-chunk.mjs.map +1 -1
  48. package/fesm2022/_shadow-dom-chunk.mjs +21 -35
  49. package/fesm2022/_shadow-dom-chunk.mjs.map +1 -1
  50. package/fesm2022/_style-loader-chunk.mjs +50 -37
  51. package/fesm2022/_style-loader-chunk.mjs.map +1 -1
  52. package/fesm2022/_test-environment-chunk.mjs +2 -14
  53. package/fesm2022/_test-environment-chunk.mjs.map +1 -1
  54. package/fesm2022/_tree-key-manager-chunk.mjs +229 -308
  55. package/fesm2022/_tree-key-manager-chunk.mjs.map +1 -1
  56. package/fesm2022/_typeahead-chunk.mjs +52 -74
  57. package/fesm2022/_typeahead-chunk.mjs.map +1 -1
  58. package/fesm2022/_unique-selection-dispatcher-chunk.mjs +43 -40
  59. package/fesm2022/_unique-selection-dispatcher-chunk.mjs.map +1 -1
  60. package/fesm2022/a11y.mjs +351 -449
  61. package/fesm2022/a11y.mjs.map +1 -1
  62. package/fesm2022/accordion.mjs +254 -192
  63. package/fesm2022/accordion.mjs.map +1 -1
  64. package/fesm2022/bidi.mjs +121 -64
  65. package/fesm2022/bidi.mjs.map +1 -1
  66. package/fesm2022/cdk.mjs +1 -2
  67. package/fesm2022/cdk.mjs.map +1 -1
  68. package/fesm2022/clipboard.mjs +208 -186
  69. package/fesm2022/clipboard.mjs.map +1 -1
  70. package/fesm2022/coercion-private.mjs +4 -8
  71. package/fesm2022/coercion-private.mjs.map +1 -1
  72. package/fesm2022/coercion.mjs +11 -29
  73. package/fesm2022/coercion.mjs.map +1 -1
  74. package/fesm2022/dialog.mjs +660 -808
  75. package/fesm2022/dialog.mjs.map +1 -1
  76. package/fesm2022/drag-drop.mjs +3347 -4286
  77. package/fesm2022/drag-drop.mjs.map +1 -1
  78. package/fesm2022/keycodes.mjs +4 -8
  79. package/fesm2022/keycodes.mjs.map +1 -1
  80. package/fesm2022/layout.mjs +44 -26
  81. package/fesm2022/layout.mjs.map +1 -1
  82. package/fesm2022/listbox.mjs +841 -895
  83. package/fesm2022/listbox.mjs.map +1 -1
  84. package/fesm2022/menu.mjs +1942 -1858
  85. package/fesm2022/menu.mjs.map +1 -1
  86. package/fesm2022/observers-private.mjs +88 -106
  87. package/fesm2022/observers-private.mjs.map +1 -1
  88. package/fesm2022/observers.mjs +262 -184
  89. package/fesm2022/observers.mjs.map +1 -1
  90. package/fesm2022/overlay.mjs +72 -68
  91. package/fesm2022/overlay.mjs.map +1 -1
  92. package/fesm2022/platform.mjs +43 -54
  93. package/fesm2022/platform.mjs.map +1 -1
  94. package/fesm2022/portal.mjs +402 -560
  95. package/fesm2022/portal.mjs.map +1 -1
  96. package/fesm2022/private.mjs +38 -10
  97. package/fesm2022/private.mjs.map +1 -1
  98. package/fesm2022/scrolling.mjs +1323 -1400
  99. package/fesm2022/scrolling.mjs.map +1 -1
  100. package/fesm2022/stepper.mjs +758 -590
  101. package/fesm2022/stepper.mjs.map +1 -1
  102. package/fesm2022/table.mjs +2327 -2319
  103. package/fesm2022/table.mjs.map +1 -1
  104. package/fesm2022/testing-selenium-webdriver.mjs +252 -325
  105. package/fesm2022/testing-selenium-webdriver.mjs.map +1 -1
  106. package/fesm2022/testing-testbed.mjs +592 -709
  107. package/fesm2022/testing-testbed.mjs.map +1 -1
  108. package/fesm2022/testing.mjs +368 -889
  109. package/fesm2022/testing.mjs.map +1 -1
  110. package/fesm2022/text-field.mjs +459 -388
  111. package/fesm2022/text-field.mjs.map +1 -1
  112. package/fesm2022/tree.mjs +1483 -1731
  113. package/fesm2022/tree.mjs.map +1 -1
  114. package/overlay/_index.scss +28 -0
  115. package/overlay-prebuilt.css +1 -1
  116. package/package.json +1 -1
  117. package/schematics/ng-add/index.js +1 -1
  118. package/types/_overlay-module-chunk.d.ts +59 -7
  119. package/types/_portal-directives-chunk.d.ts +2 -18
  120. package/types/accordion.d.ts +3 -1
  121. package/types/dialog.d.ts +1 -1
  122. package/types/overlay.d.ts +6 -2
  123. package/types/portal.d.ts +1 -1
@@ -7,426 +7,497 @@ import { coerceElement, coerceNumberProperty } from './_element-chunk.mjs';
7
7
  import { auditTime } from 'rxjs/operators';
8
8
  import '@angular/common';
9
9
 
10
- /** Component used to load the structural styles of the text field. */
11
10
  class _CdkTextFieldStyleLoader {
12
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: _CdkTextFieldStyleLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
13
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.0-next.2", type: _CdkTextFieldStyleLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-text-field-style-loader": "" } }, ngImport: i0, template: '', isInline: true, styles: ["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
11
+ static ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "20.2.0-next.2",
14
+ ngImport: i0,
15
+ type: _CdkTextFieldStyleLoader,
16
+ deps: [],
17
+ target: i0.ɵɵFactoryTarget.Component
18
+ });
19
+ static ɵcmp = i0.ɵɵngDeclareComponent({
20
+ minVersion: "14.0.0",
21
+ version: "20.2.0-next.2",
22
+ type: _CdkTextFieldStyleLoader,
23
+ isStandalone: true,
24
+ selector: "ng-component",
25
+ host: {
26
+ attributes: {
27
+ "cdk-text-field-style-loader": ""
28
+ }
29
+ },
30
+ ngImport: i0,
31
+ template: '',
32
+ isInline: true,
33
+ styles: ["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],
34
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
35
+ encapsulation: i0.ViewEncapsulation.None
36
+ });
14
37
  }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: _CdkTextFieldStyleLoader, decorators: [{
16
- type: Component,
17
- args: [{ template: '', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'cdk-text-field-style-loader': '' }, styles: ["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"] }]
18
- }] });
38
+ i0.ɵɵngDeclareClassMetadata({
39
+ minVersion: "12.0.0",
40
+ version: "20.2.0-next.2",
41
+ ngImport: i0,
42
+ type: _CdkTextFieldStyleLoader,
43
+ decorators: [{
44
+ type: Component,
45
+ args: [{
46
+ template: '',
47
+ changeDetection: ChangeDetectionStrategy.OnPush,
48
+ encapsulation: ViewEncapsulation.None,
49
+ host: {
50
+ 'cdk-text-field-style-loader': ''
51
+ },
52
+ styles: ["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"]
53
+ }]
54
+ }]
55
+ });
19
56
 
20
- /** Options to pass to the animationstart listener. */
21
- const listenerOptions = { passive: true };
22
- /**
23
- * An injectable service that can be used to monitor the autofill state of an input.
24
- * Based on the following blog post:
25
- * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
26
- */
57
+ const listenerOptions = {
58
+ passive: true
59
+ };
27
60
  class AutofillMonitor {
28
- _platform = inject(Platform);
29
- _ngZone = inject(NgZone);
30
- _renderer = inject(RendererFactory2).createRenderer(null, null);
31
- _styleLoader = inject(_CdkPrivateStyleLoader);
32
- _monitoredElements = new Map();
33
- constructor() { }
34
- monitor(elementOrRef) {
35
- if (!this._platform.isBrowser) {
36
- return EMPTY;
37
- }
38
- this._styleLoader.load(_CdkTextFieldStyleLoader);
39
- const element = coerceElement(elementOrRef);
40
- const info = this._monitoredElements.get(element);
41
- if (info) {
42
- return info.subject;
43
- }
44
- const subject = new Subject();
45
- const cssClass = 'cdk-text-field-autofilled';
46
- const listener = (event) => {
47
- // Animation events fire on initial element render, we check for the presence of the autofill
48
- // CSS class to make sure this is a real change in state, not just the initial render before
49
- // we fire off events.
50
- if (event.animationName === 'cdk-text-field-autofill-start' &&
51
- !element.classList.contains(cssClass)) {
52
- element.classList.add(cssClass);
53
- this._ngZone.run(() => subject.next({ target: event.target, isAutofilled: true }));
54
- }
55
- else if (event.animationName === 'cdk-text-field-autofill-end' &&
56
- element.classList.contains(cssClass)) {
57
- element.classList.remove(cssClass);
58
- this._ngZone.run(() => subject.next({ target: event.target, isAutofilled: false }));
59
- }
60
- };
61
- const unlisten = this._ngZone.runOutsideAngular(() => {
62
- element.classList.add('cdk-text-field-autofill-monitored');
63
- return this._renderer.listen(element, 'animationstart', listener, listenerOptions);
64
- });
65
- this._monitoredElements.set(element, { subject, unlisten });
66
- return subject;
61
+ _platform = inject(Platform);
62
+ _ngZone = inject(NgZone);
63
+ _renderer = inject(RendererFactory2).createRenderer(null, null);
64
+ _styleLoader = inject(_CdkPrivateStyleLoader);
65
+ _monitoredElements = new Map();
66
+ constructor() {}
67
+ monitor(elementOrRef) {
68
+ if (!this._platform.isBrowser) {
69
+ return EMPTY;
67
70
  }
68
- stopMonitoring(elementOrRef) {
69
- const element = coerceElement(elementOrRef);
70
- const info = this._monitoredElements.get(element);
71
- if (info) {
72
- info.unlisten();
73
- info.subject.complete();
74
- element.classList.remove('cdk-text-field-autofill-monitored');
75
- element.classList.remove('cdk-text-field-autofilled');
76
- this._monitoredElements.delete(element);
77
- }
71
+ this._styleLoader.load(_CdkTextFieldStyleLoader);
72
+ const element = coerceElement(elementOrRef);
73
+ const info = this._monitoredElements.get(element);
74
+ if (info) {
75
+ return info.subject;
78
76
  }
79
- ngOnDestroy() {
80
- this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));
77
+ const subject = new Subject();
78
+ const cssClass = 'cdk-text-field-autofilled';
79
+ const listener = event => {
80
+ if (event.animationName === 'cdk-text-field-autofill-start' && !element.classList.contains(cssClass)) {
81
+ element.classList.add(cssClass);
82
+ this._ngZone.run(() => subject.next({
83
+ target: event.target,
84
+ isAutofilled: true
85
+ }));
86
+ } else if (event.animationName === 'cdk-text-field-autofill-end' && element.classList.contains(cssClass)) {
87
+ element.classList.remove(cssClass);
88
+ this._ngZone.run(() => subject.next({
89
+ target: event.target,
90
+ isAutofilled: false
91
+ }));
92
+ }
93
+ };
94
+ const unlisten = this._ngZone.runOutsideAngular(() => {
95
+ element.classList.add('cdk-text-field-autofill-monitored');
96
+ return this._renderer.listen(element, 'animationstart', listener, listenerOptions);
97
+ });
98
+ this._monitoredElements.set(element, {
99
+ subject,
100
+ unlisten
101
+ });
102
+ return subject;
103
+ }
104
+ stopMonitoring(elementOrRef) {
105
+ const element = coerceElement(elementOrRef);
106
+ const info = this._monitoredElements.get(element);
107
+ if (info) {
108
+ info.unlisten();
109
+ info.subject.complete();
110
+ element.classList.remove('cdk-text-field-autofill-monitored');
111
+ element.classList.remove('cdk-text-field-autofilled');
112
+ this._monitoredElements.delete(element);
81
113
  }
82
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AutofillMonitor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
83
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AutofillMonitor, providedIn: 'root' });
114
+ }
115
+ ngOnDestroy() {
116
+ this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));
117
+ }
118
+ static ɵfac = i0.ɵɵngDeclareFactory({
119
+ minVersion: "12.0.0",
120
+ version: "20.2.0-next.2",
121
+ ngImport: i0,
122
+ type: AutofillMonitor,
123
+ deps: [],
124
+ target: i0.ɵɵFactoryTarget.Injectable
125
+ });
126
+ static ɵprov = i0.ɵɵngDeclareInjectable({
127
+ minVersion: "12.0.0",
128
+ version: "20.2.0-next.2",
129
+ ngImport: i0,
130
+ type: AutofillMonitor,
131
+ providedIn: 'root'
132
+ });
84
133
  }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AutofillMonitor, decorators: [{
86
- type: Injectable,
87
- args: [{ providedIn: 'root' }]
88
- }], ctorParameters: () => [] });
89
- /** A directive that can be used to monitor the autofill state of an input. */
134
+ i0.ɵɵngDeclareClassMetadata({
135
+ minVersion: "12.0.0",
136
+ version: "20.2.0-next.2",
137
+ ngImport: i0,
138
+ type: AutofillMonitor,
139
+ decorators: [{
140
+ type: Injectable,
141
+ args: [{
142
+ providedIn: 'root'
143
+ }]
144
+ }],
145
+ ctorParameters: () => []
146
+ });
90
147
  class CdkAutofill {
91
- _elementRef = inject(ElementRef);
92
- _autofillMonitor = inject(AutofillMonitor);
93
- /** Emits when the autofill state of the element changes. */
94
- cdkAutofill = new EventEmitter();
95
- constructor() { }
96
- ngOnInit() {
97
- this._autofillMonitor
98
- .monitor(this._elementRef)
99
- .subscribe(event => this.cdkAutofill.emit(event));
100
- }
101
- ngOnDestroy() {
102
- this._autofillMonitor.stopMonitoring(this._elementRef);
103
- }
104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkAutofill, deps: [], target: i0.ɵɵFactoryTarget.Directive });
105
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: CdkAutofill, isStandalone: true, selector: "[cdkAutofill]", outputs: { cdkAutofill: "cdkAutofill" }, ngImport: i0 });
148
+ _elementRef = inject(ElementRef);
149
+ _autofillMonitor = inject(AutofillMonitor);
150
+ cdkAutofill = new EventEmitter();
151
+ constructor() {}
152
+ ngOnInit() {
153
+ this._autofillMonitor.monitor(this._elementRef).subscribe(event => this.cdkAutofill.emit(event));
154
+ }
155
+ ngOnDestroy() {
156
+ this._autofillMonitor.stopMonitoring(this._elementRef);
157
+ }
158
+ static ɵfac = i0.ɵɵngDeclareFactory({
159
+ minVersion: "12.0.0",
160
+ version: "20.2.0-next.2",
161
+ ngImport: i0,
162
+ type: CdkAutofill,
163
+ deps: [],
164
+ target: i0.ɵɵFactoryTarget.Directive
165
+ });
166
+ static ɵdir = i0.ɵɵngDeclareDirective({
167
+ minVersion: "14.0.0",
168
+ version: "20.2.0-next.2",
169
+ type: CdkAutofill,
170
+ isStandalone: true,
171
+ selector: "[cdkAutofill]",
172
+ outputs: {
173
+ cdkAutofill: "cdkAutofill"
174
+ },
175
+ ngImport: i0
176
+ });
106
177
  }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkAutofill, decorators: [{
108
- type: Directive,
109
- args: [{
110
- selector: '[cdkAutofill]',
111
- }]
112
- }], ctorParameters: () => [], propDecorators: { cdkAutofill: [{
113
- type: Output
114
- }] } });
178
+ i0.ɵɵngDeclareClassMetadata({
179
+ minVersion: "12.0.0",
180
+ version: "20.2.0-next.2",
181
+ ngImport: i0,
182
+ type: CdkAutofill,
183
+ decorators: [{
184
+ type: Directive,
185
+ args: [{
186
+ selector: '[cdkAutofill]'
187
+ }]
188
+ }],
189
+ ctorParameters: () => [],
190
+ propDecorators: {
191
+ cdkAutofill: [{
192
+ type: Output
193
+ }]
194
+ }
195
+ });
115
196
 
116
- /** Directive to automatically resize a textarea to fit its content. */
117
197
  class CdkTextareaAutosize {
118
- _elementRef = inject(ElementRef);
119
- _platform = inject(Platform);
120
- _ngZone = inject(NgZone);
121
- _renderer = inject(Renderer2);
122
- _resizeEvents = new Subject();
123
- /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */
124
- _previousValue;
125
- _initialHeight;
126
- _destroyed = new Subject();
127
- _listenerCleanups;
128
- _minRows;
129
- _maxRows;
130
- _enabled = true;
131
- /**
132
- * Value of minRows as of last resize. If the minRows has decreased, the
133
- * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
134
- * does not have the same problem because it does not affect the textarea's scrollHeight.
135
- */
136
- _previousMinRows = -1;
137
- _textareaElement;
138
- /** Minimum amount of rows in the textarea. */
139
- get minRows() {
140
- return this._minRows;
141
- }
142
- set minRows(value) {
143
- this._minRows = coerceNumberProperty(value);
144
- this._setMinHeight();
145
- }
146
- /** Maximum amount of rows in the textarea. */
147
- get maxRows() {
148
- return this._maxRows;
198
+ _elementRef = inject(ElementRef);
199
+ _platform = inject(Platform);
200
+ _ngZone = inject(NgZone);
201
+ _renderer = inject(Renderer2);
202
+ _resizeEvents = new Subject();
203
+ _previousValue;
204
+ _initialHeight;
205
+ _destroyed = new Subject();
206
+ _listenerCleanups;
207
+ _minRows;
208
+ _maxRows;
209
+ _enabled = true;
210
+ _previousMinRows = -1;
211
+ _textareaElement;
212
+ get minRows() {
213
+ return this._minRows;
214
+ }
215
+ set minRows(value) {
216
+ this._minRows = coerceNumberProperty(value);
217
+ this._setMinHeight();
218
+ }
219
+ get maxRows() {
220
+ return this._maxRows;
221
+ }
222
+ set maxRows(value) {
223
+ this._maxRows = coerceNumberProperty(value);
224
+ this._setMaxHeight();
225
+ }
226
+ get enabled() {
227
+ return this._enabled;
228
+ }
229
+ set enabled(value) {
230
+ if (this._enabled !== value) {
231
+ (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
149
232
  }
150
- set maxRows(value) {
151
- this._maxRows = coerceNumberProperty(value);
152
- this._setMaxHeight();
233
+ }
234
+ get placeholder() {
235
+ return this._textareaElement.placeholder;
236
+ }
237
+ set placeholder(value) {
238
+ this._cachedPlaceholderHeight = undefined;
239
+ if (value) {
240
+ this._textareaElement.setAttribute('placeholder', value);
241
+ } else {
242
+ this._textareaElement.removeAttribute('placeholder');
153
243
  }
154
- /** Whether autosizing is enabled or not */
155
- get enabled() {
156
- return this._enabled;
244
+ this._cacheTextareaPlaceholderHeight();
245
+ }
246
+ _cachedLineHeight;
247
+ _cachedPlaceholderHeight;
248
+ _document = inject(DOCUMENT);
249
+ _hasFocus;
250
+ _isViewInited = false;
251
+ constructor() {
252
+ const styleLoader = inject(_CdkPrivateStyleLoader);
253
+ styleLoader.load(_CdkTextFieldStyleLoader);
254
+ this._textareaElement = this._elementRef.nativeElement;
255
+ }
256
+ _setMinHeight() {
257
+ const minHeight = this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;
258
+ if (minHeight) {
259
+ this._textareaElement.style.minHeight = minHeight;
157
260
  }
158
- set enabled(value) {
159
- // Only act if the actual value changed. This specifically helps to not run
160
- // resizeToFitContent too early (i.e. before ngAfterViewInit)
161
- if (this._enabled !== value) {
162
- (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
163
- }
261
+ }
262
+ _setMaxHeight() {
263
+ const maxHeight = this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;
264
+ if (maxHeight) {
265
+ this._textareaElement.style.maxHeight = maxHeight;
164
266
  }
165
- get placeholder() {
166
- return this._textareaElement.placeholder;
167
- }
168
- set placeholder(value) {
169
- this._cachedPlaceholderHeight = undefined;
170
- if (value) {
171
- this._textareaElement.setAttribute('placeholder', value);
172
- }
173
- else {
174
- this._textareaElement.removeAttribute('placeholder');
175
- }
176
- this._cacheTextareaPlaceholderHeight();
177
- }
178
- /** Cached height of a textarea with a single row. */
179
- _cachedLineHeight;
180
- /** Cached height of a textarea with only the placeholder. */
181
- _cachedPlaceholderHeight;
182
- /** Used to reference correct document/window */
183
- _document = inject(DOCUMENT);
184
- _hasFocus;
185
- _isViewInited = false;
186
- constructor() {
187
- const styleLoader = inject(_CdkPrivateStyleLoader);
188
- styleLoader.load(_CdkTextFieldStyleLoader);
189
- this._textareaElement = this._elementRef.nativeElement;
190
- }
191
- /** Sets the minimum height of the textarea as determined by minRows. */
192
- _setMinHeight() {
193
- const minHeight = this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;
194
- if (minHeight) {
195
- this._textareaElement.style.minHeight = minHeight;
196
- }
267
+ }
268
+ ngAfterViewInit() {
269
+ if (this._platform.isBrowser) {
270
+ this._initialHeight = this._textareaElement.style.height;
271
+ this.resizeToFitContent();
272
+ this._ngZone.runOutsideAngular(() => {
273
+ this._listenerCleanups = [this._renderer.listen('window', 'resize', () => this._resizeEvents.next()), this._renderer.listen(this._textareaElement, 'focus', this._handleFocusEvent), this._renderer.listen(this._textareaElement, 'blur', this._handleFocusEvent)];
274
+ this._resizeEvents.pipe(auditTime(16)).subscribe(() => {
275
+ this._cachedLineHeight = this._cachedPlaceholderHeight = undefined;
276
+ this.resizeToFitContent(true);
277
+ });
278
+ });
279
+ this._isViewInited = true;
280
+ this.resizeToFitContent(true);
197
281
  }
198
- /** Sets the maximum height of the textarea as determined by maxRows. */
199
- _setMaxHeight() {
200
- const maxHeight = this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;
201
- if (maxHeight) {
202
- this._textareaElement.style.maxHeight = maxHeight;
203
- }
282
+ }
283
+ ngOnDestroy() {
284
+ this._listenerCleanups?.forEach(cleanup => cleanup());
285
+ this._resizeEvents.complete();
286
+ this._destroyed.next();
287
+ this._destroyed.complete();
288
+ }
289
+ _cacheTextareaLineHeight() {
290
+ if (this._cachedLineHeight) {
291
+ return;
204
292
  }
205
- ngAfterViewInit() {
206
- if (this._platform.isBrowser) {
207
- // Remember the height which we started with in case autosizing is disabled
208
- this._initialHeight = this._textareaElement.style.height;
209
- this.resizeToFitContent();
210
- this._ngZone.runOutsideAngular(() => {
211
- this._listenerCleanups = [
212
- this._renderer.listen('window', 'resize', () => this._resizeEvents.next()),
213
- this._renderer.listen(this._textareaElement, 'focus', this._handleFocusEvent),
214
- this._renderer.listen(this._textareaElement, 'blur', this._handleFocusEvent),
215
- ];
216
- this._resizeEvents.pipe(auditTime(16)).subscribe(() => {
217
- // Clear the cached heights since the styles can change
218
- // when the window is resized (e.g. by media queries).
219
- this._cachedLineHeight = this._cachedPlaceholderHeight = undefined;
220
- this.resizeToFitContent(true);
221
- });
222
- });
223
- this._isViewInited = true;
224
- this.resizeToFitContent(true);
225
- }
293
+ const textareaClone = this._textareaElement.cloneNode(false);
294
+ const cloneStyles = textareaClone.style;
295
+ textareaClone.rows = 1;
296
+ cloneStyles.position = 'absolute';
297
+ cloneStyles.visibility = 'hidden';
298
+ cloneStyles.border = 'none';
299
+ cloneStyles.padding = '0';
300
+ cloneStyles.height = '';
301
+ cloneStyles.minHeight = '';
302
+ cloneStyles.maxHeight = '';
303
+ cloneStyles.top = cloneStyles.bottom = cloneStyles.left = cloneStyles.right = 'auto';
304
+ cloneStyles.overflow = 'hidden';
305
+ this._textareaElement.parentNode.appendChild(textareaClone);
306
+ this._cachedLineHeight = textareaClone.clientHeight;
307
+ textareaClone.remove();
308
+ this._setMinHeight();
309
+ this._setMaxHeight();
310
+ }
311
+ _measureScrollHeight() {
312
+ const element = this._textareaElement;
313
+ const previousMargin = element.style.marginBottom || '';
314
+ const isFirefox = this._platform.FIREFOX;
315
+ const needsMarginFiller = isFirefox && this._hasFocus;
316
+ const measuringClass = isFirefox ? 'cdk-textarea-autosize-measuring-firefox' : 'cdk-textarea-autosize-measuring';
317
+ if (needsMarginFiller) {
318
+ element.style.marginBottom = `${element.clientHeight}px`;
226
319
  }
227
- ngOnDestroy() {
228
- this._listenerCleanups?.forEach(cleanup => cleanup());
229
- this._resizeEvents.complete();
230
- this._destroyed.next();
231
- this._destroyed.complete();
320
+ element.classList.add(measuringClass);
321
+ const scrollHeight = element.scrollHeight - 4;
322
+ element.classList.remove(measuringClass);
323
+ if (needsMarginFiller) {
324
+ element.style.marginBottom = previousMargin;
232
325
  }
233
- /**
234
- * Cache the height of a single-row textarea if it has not already been cached.
235
- *
236
- * We need to know how large a single "row" of a textarea is in order to apply minRows and
237
- * maxRows. For the initial version, we will assume that the height of a single line in the
238
- * textarea does not ever change.
239
- */
240
- _cacheTextareaLineHeight() {
241
- if (this._cachedLineHeight) {
242
- return;
243
- }
244
- // Use a clone element because we have to override some styles.
245
- const textareaClone = this._textareaElement.cloneNode(false);
246
- const cloneStyles = textareaClone.style;
247
- textareaClone.rows = 1;
248
- // Use `position: absolute` so that this doesn't cause a browser layout and use
249
- // `visibility: hidden` so that nothing is rendered. Clear any other styles that
250
- // would affect the height.
251
- cloneStyles.position = 'absolute';
252
- cloneStyles.visibility = 'hidden';
253
- cloneStyles.border = 'none';
254
- cloneStyles.padding = '0';
255
- cloneStyles.height = '';
256
- cloneStyles.minHeight = '';
257
- cloneStyles.maxHeight = '';
258
- // App styles might be messing with the height through the positioning properties.
259
- cloneStyles.top = cloneStyles.bottom = cloneStyles.left = cloneStyles.right = 'auto';
260
- // In Firefox it happens that textarea elements are always bigger than the specified amount
261
- // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.
262
- // As a workaround that removes the extra space for the scrollbar, we can just set overflow
263
- // to hidden. This ensures that there is no invalid calculation of the line height.
264
- // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654
265
- cloneStyles.overflow = 'hidden';
266
- this._textareaElement.parentNode.appendChild(textareaClone);
267
- this._cachedLineHeight = textareaClone.clientHeight;
268
- textareaClone.remove();
269
- // Min and max heights have to be re-calculated if the cached line height changes
270
- this._setMinHeight();
271
- this._setMaxHeight();
326
+ return scrollHeight;
327
+ }
328
+ _cacheTextareaPlaceholderHeight() {
329
+ if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {
330
+ return;
272
331
  }
273
- _measureScrollHeight() {
274
- const element = this._textareaElement;
275
- const previousMargin = element.style.marginBottom || '';
276
- const isFirefox = this._platform.FIREFOX;
277
- const needsMarginFiller = isFirefox && this._hasFocus;
278
- const measuringClass = isFirefox
279
- ? 'cdk-textarea-autosize-measuring-firefox'
280
- : 'cdk-textarea-autosize-measuring';
281
- // In some cases the page might move around while we're measuring the `textarea` on Firefox. We
282
- // work around it by assigning a temporary margin with the same height as the `textarea` so that
283
- // it occupies the same amount of space. See #23233.
284
- if (needsMarginFiller) {
285
- element.style.marginBottom = `${element.clientHeight}px`;
286
- }
287
- // Reset the textarea height to auto in order to shrink back to its default size.
288
- // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
289
- element.classList.add(measuringClass);
290
- // The measuring class includes a 2px padding to workaround an issue with Chrome,
291
- // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).
292
- const scrollHeight = element.scrollHeight - 4;
293
- element.classList.remove(measuringClass);
294
- if (needsMarginFiller) {
295
- element.style.marginBottom = previousMargin;
296
- }
297
- return scrollHeight;
332
+ if (!this.placeholder) {
333
+ this._cachedPlaceholderHeight = 0;
334
+ return;
298
335
  }
299
- _cacheTextareaPlaceholderHeight() {
300
- if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {
301
- return;
302
- }
303
- if (!this.placeholder) {
304
- this._cachedPlaceholderHeight = 0;
305
- return;
306
- }
307
- const value = this._textareaElement.value;
308
- this._textareaElement.value = this._textareaElement.placeholder;
309
- this._cachedPlaceholderHeight = this._measureScrollHeight();
310
- this._textareaElement.value = value;
336
+ const value = this._textareaElement.value;
337
+ this._textareaElement.value = this._textareaElement.placeholder;
338
+ this._cachedPlaceholderHeight = this._measureScrollHeight();
339
+ this._textareaElement.value = value;
340
+ }
341
+ _handleFocusEvent = event => {
342
+ this._hasFocus = event.type === 'focus';
343
+ };
344
+ ngDoCheck() {
345
+ if (this._platform.isBrowser) {
346
+ this.resizeToFitContent();
311
347
  }
312
- /** Handles `focus` and `blur` events. */
313
- _handleFocusEvent = (event) => {
314
- this._hasFocus = event.type === 'focus';
315
- };
316
- ngDoCheck() {
317
- if (this._platform.isBrowser) {
318
- this.resizeToFitContent();
319
- }
348
+ }
349
+ resizeToFitContent(force = false) {
350
+ if (!this._enabled) {
351
+ return;
320
352
  }
321
- /**
322
- * Resize the textarea to fit its content.
323
- * @param force Whether to force a height recalculation. By default the height will be
324
- * recalculated only if the value changed since the last call.
325
- */
326
- resizeToFitContent(force = false) {
327
- // If autosizing is disabled, just skip everything else
328
- if (!this._enabled) {
329
- return;
330
- }
331
- this._cacheTextareaLineHeight();
332
- this._cacheTextareaPlaceholderHeight();
333
- // If we haven't determined the line-height yet, we know we're still hidden and there's no point
334
- // in checking the height of the textarea.
335
- if (!this._cachedLineHeight) {
336
- return;
337
- }
338
- const textarea = this._elementRef.nativeElement;
339
- const value = textarea.value;
340
- // Only resize if the value or minRows have changed since these calculations can be expensive.
341
- if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
342
- return;
343
- }
344
- const scrollHeight = this._measureScrollHeight();
345
- const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);
346
- // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.
347
- textarea.style.height = `${height}px`;
348
- this._ngZone.runOutsideAngular(() => {
349
- if (typeof requestAnimationFrame !== 'undefined') {
350
- requestAnimationFrame(() => this._scrollToCaretPosition(textarea));
351
- }
352
- else {
353
- setTimeout(() => this._scrollToCaretPosition(textarea));
354
- }
355
- });
356
- this._previousValue = value;
357
- this._previousMinRows = this._minRows;
353
+ this._cacheTextareaLineHeight();
354
+ this._cacheTextareaPlaceholderHeight();
355
+ if (!this._cachedLineHeight) {
356
+ return;
358
357
  }
359
- /**
360
- * Resets the textarea to its original size
361
- */
362
- reset() {
363
- // Do not try to change the textarea, if the initialHeight has not been determined yet
364
- // This might potentially remove styles when reset() is called before ngAfterViewInit
365
- if (this._initialHeight !== undefined) {
366
- this._textareaElement.style.height = this._initialHeight;
367
- }
358
+ const textarea = this._elementRef.nativeElement;
359
+ const value = textarea.value;
360
+ if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
361
+ return;
368
362
  }
369
- _noopInputHandler() {
370
- // no-op handler that ensures we're running change detection on input events.
363
+ const scrollHeight = this._measureScrollHeight();
364
+ const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);
365
+ textarea.style.height = `${height}px`;
366
+ this._ngZone.runOutsideAngular(() => {
367
+ if (typeof requestAnimationFrame !== 'undefined') {
368
+ requestAnimationFrame(() => this._scrollToCaretPosition(textarea));
369
+ } else {
370
+ setTimeout(() => this._scrollToCaretPosition(textarea));
371
+ }
372
+ });
373
+ this._previousValue = value;
374
+ this._previousMinRows = this._minRows;
375
+ }
376
+ reset() {
377
+ if (this._initialHeight !== undefined) {
378
+ this._textareaElement.style.height = this._initialHeight;
371
379
  }
372
- /**
373
- * Scrolls a textarea to the caret position. On Firefox resizing the textarea will
374
- * prevent it from scrolling to the caret position. We need to re-set the selection
375
- * in order for it to scroll to the proper position.
376
- */
377
- _scrollToCaretPosition(textarea) {
378
- const { selectionStart, selectionEnd } = textarea;
379
- // IE will throw an "Unspecified error" if we try to set the selection range after the
380
- // element has been removed from the DOM. Assert that the directive hasn't been destroyed
381
- // between the time we requested the animation frame and when it was executed.
382
- // Also note that we have to assert that the textarea is focused before we set the
383
- // selection range. Setting the selection range on a non-focused textarea will cause
384
- // it to receive focus on IE and Edge.
385
- if (!this._destroyed.isStopped && this._hasFocus) {
386
- textarea.setSelectionRange(selectionStart, selectionEnd);
387
- }
380
+ }
381
+ _noopInputHandler() {}
382
+ _scrollToCaretPosition(textarea) {
383
+ const {
384
+ selectionStart,
385
+ selectionEnd
386
+ } = textarea;
387
+ if (!this._destroyed.isStopped && this._hasFocus) {
388
+ textarea.setSelectionRange(selectionStart, selectionEnd);
388
389
  }
389
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkTextareaAutosize, deps: [], target: i0.ɵɵFactoryTarget.Directive });
390
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.2.0-next.2", type: CdkTextareaAutosize, isStandalone: true, selector: "textarea[cdkTextareaAutosize]", inputs: { minRows: ["cdkAutosizeMinRows", "minRows"], maxRows: ["cdkAutosizeMaxRows", "maxRows"], enabled: ["cdkTextareaAutosize", "enabled", booleanAttribute], placeholder: "placeholder" }, host: { attributes: { "rows": "1" }, listeners: { "input": "_noopInputHandler()" }, classAttribute: "cdk-textarea-autosize" }, exportAs: ["cdkTextareaAutosize"], ngImport: i0 });
390
+ }
391
+ static ɵfac = i0.ɵɵngDeclareFactory({
392
+ minVersion: "12.0.0",
393
+ version: "20.2.0-next.2",
394
+ ngImport: i0,
395
+ type: CdkTextareaAutosize,
396
+ deps: [],
397
+ target: i0.ɵɵFactoryTarget.Directive
398
+ });
399
+ static ɵdir = i0.ɵɵngDeclareDirective({
400
+ minVersion: "16.1.0",
401
+ version: "20.2.0-next.2",
402
+ type: CdkTextareaAutosize,
403
+ isStandalone: true,
404
+ selector: "textarea[cdkTextareaAutosize]",
405
+ inputs: {
406
+ minRows: ["cdkAutosizeMinRows", "minRows"],
407
+ maxRows: ["cdkAutosizeMaxRows", "maxRows"],
408
+ enabled: ["cdkTextareaAutosize", "enabled", booleanAttribute],
409
+ placeholder: "placeholder"
410
+ },
411
+ host: {
412
+ attributes: {
413
+ "rows": "1"
414
+ },
415
+ listeners: {
416
+ "input": "_noopInputHandler()"
417
+ },
418
+ classAttribute: "cdk-textarea-autosize"
419
+ },
420
+ exportAs: ["cdkTextareaAutosize"],
421
+ ngImport: i0
422
+ });
391
423
  }
392
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CdkTextareaAutosize, decorators: [{
393
- type: Directive,
394
- args: [{
395
- selector: 'textarea[cdkTextareaAutosize]',
396
- exportAs: 'cdkTextareaAutosize',
397
- host: {
398
- 'class': 'cdk-textarea-autosize',
399
- // Textarea elements that have the directive applied should have a single row by default.
400
- // Browsers normally show two rows by default and therefore this limits the minRows binding.
401
- 'rows': '1',
402
- '(input)': '_noopInputHandler()',
403
- },
404
- }]
405
- }], ctorParameters: () => [], propDecorators: { minRows: [{
406
- type: Input,
407
- args: ['cdkAutosizeMinRows']
408
- }], maxRows: [{
409
- type: Input,
410
- args: ['cdkAutosizeMaxRows']
411
- }], enabled: [{
412
- type: Input,
413
- args: [{ alias: 'cdkTextareaAutosize', transform: booleanAttribute }]
414
- }], placeholder: [{
415
- type: Input
416
- }] } });
424
+ i0.ɵɵngDeclareClassMetadata({
425
+ minVersion: "12.0.0",
426
+ version: "20.2.0-next.2",
427
+ ngImport: i0,
428
+ type: CdkTextareaAutosize,
429
+ decorators: [{
430
+ type: Directive,
431
+ args: [{
432
+ selector: 'textarea[cdkTextareaAutosize]',
433
+ exportAs: 'cdkTextareaAutosize',
434
+ host: {
435
+ 'class': 'cdk-textarea-autosize',
436
+ 'rows': '1',
437
+ '(input)': '_noopInputHandler()'
438
+ }
439
+ }]
440
+ }],
441
+ ctorParameters: () => [],
442
+ propDecorators: {
443
+ minRows: [{
444
+ type: Input,
445
+ args: ['cdkAutosizeMinRows']
446
+ }],
447
+ maxRows: [{
448
+ type: Input,
449
+ args: ['cdkAutosizeMaxRows']
450
+ }],
451
+ enabled: [{
452
+ type: Input,
453
+ args: [{
454
+ alias: 'cdkTextareaAutosize',
455
+ transform: booleanAttribute
456
+ }]
457
+ }],
458
+ placeholder: [{
459
+ type: Input
460
+ }]
461
+ }
462
+ });
417
463
 
418
464
  class TextFieldModule {
419
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
420
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule, imports: [CdkAutofill, CdkTextareaAutosize], exports: [CdkAutofill, CdkTextareaAutosize] });
421
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule });
465
+ static ɵfac = i0.ɵɵngDeclareFactory({
466
+ minVersion: "12.0.0",
467
+ version: "20.2.0-next.2",
468
+ ngImport: i0,
469
+ type: TextFieldModule,
470
+ deps: [],
471
+ target: i0.ɵɵFactoryTarget.NgModule
472
+ });
473
+ static ɵmod = i0.ɵɵngDeclareNgModule({
474
+ minVersion: "14.0.0",
475
+ version: "20.2.0-next.2",
476
+ ngImport: i0,
477
+ type: TextFieldModule,
478
+ imports: [CdkAutofill, CdkTextareaAutosize],
479
+ exports: [CdkAutofill, CdkTextareaAutosize]
480
+ });
481
+ static ɵinj = i0.ɵɵngDeclareInjector({
482
+ minVersion: "12.0.0",
483
+ version: "20.2.0-next.2",
484
+ ngImport: i0,
485
+ type: TextFieldModule
486
+ });
422
487
  }
423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TextFieldModule, decorators: [{
424
- type: NgModule,
425
- args: [{
426
- imports: [CdkAutofill, CdkTextareaAutosize],
427
- exports: [CdkAutofill, CdkTextareaAutosize],
428
- }]
429
- }] });
488
+ i0.ɵɵngDeclareClassMetadata({
489
+ minVersion: "12.0.0",
490
+ version: "20.2.0-next.2",
491
+ ngImport: i0,
492
+ type: TextFieldModule,
493
+ decorators: [{
494
+ type: NgModule,
495
+ args: [{
496
+ imports: [CdkAutofill, CdkTextareaAutosize],
497
+ exports: [CdkAutofill, CdkTextareaAutosize]
498
+ }]
499
+ }]
500
+ });
430
501
 
431
502
  export { AutofillMonitor, CdkAutofill, CdkTextareaAutosize, TextFieldModule };
432
503
  //# sourceMappingURL=text-field.mjs.map