@angular/cdk 10.0.0-rc.3 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/aria-describer/aria-describer.d.ts +10 -1
- package/a11y/focus-trap/focus-trap.d.ts +4 -2
- package/a11y/index.metadata.json +1 -1
- package/a11y/interactivity-checker/interactivity-checker.d.ts +11 -1
- package/a11y/key-manager/list-key-manager.d.ts +6 -0
- package/accordion/accordion.d.ts +7 -1
- package/accordion/index.d.ts +1 -0
- package/accordion/index.metadata.json +1 -1
- package/bundles/cdk-a11y.umd.js +78 -15
- package/bundles/cdk-a11y.umd.js.map +1 -1
- package/bundles/cdk-a11y.umd.min.js +11 -11
- package/bundles/cdk-a11y.umd.min.js.map +1 -1
- package/bundles/cdk-accordion.umd.js +12 -4
- package/bundles/cdk-accordion.umd.js.map +1 -1
- package/bundles/cdk-accordion.umd.min.js +2 -2
- package/bundles/cdk-accordion.umd.min.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.js +717 -641
- package/bundles/cdk-drag-drop.umd.js.map +1 -1
- package/bundles/cdk-drag-drop.umd.min.js +8 -16
- package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
- package/bundles/cdk-overlay.umd.js +199 -42
- package/bundles/cdk-overlay.umd.js.map +1 -1
- package/bundles/cdk-overlay.umd.min.js +11 -18
- package/bundles/cdk-overlay.umd.min.js.map +1 -1
- package/bundles/cdk-platform.umd.js +0 -1
- package/bundles/cdk-platform.umd.js.map +1 -1
- package/bundles/cdk-platform.umd.min.js +2 -2
- package/bundles/cdk-platform.umd.min.js.map +1 -1
- package/bundles/cdk-scrolling.umd.js +26 -4
- package/bundles/cdk-scrolling.umd.js.map +1 -1
- package/bundles/cdk-scrolling.umd.min.js +11 -4
- package/bundles/cdk-scrolling.umd.min.js.map +1 -1
- package/bundles/cdk-testing-protractor.umd.min.js +1 -1
- package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
- package/bundles/cdk-testing-testbed.umd.min.js +8 -8
- package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
- package/bundles/cdk-testing.umd.js +32 -0
- package/bundles/cdk-testing.umd.js.map +1 -1
- package/bundles/cdk-testing.umd.min.js +5 -5
- package/bundles/cdk-testing.umd.min.js.map +1 -1
- package/bundles/cdk-tree.umd.js +6 -2
- package/bundles/cdk-tree.umd.js.map +1 -1
- package/bundles/cdk-tree.umd.min.js +3 -3
- package/bundles/cdk-tree.umd.min.js.map +1 -1
- package/bundles/cdk.umd.js +1 -1
- package/bundles/cdk.umd.js.map +1 -1
- package/bundles/cdk.umd.min.js +1 -1
- package/bundles/cdk.umd.min.js.map +1 -1
- package/drag-drop/directives/drag-handle.d.ts +7 -1
- package/drag-drop/directives/drag-placeholder.d.ts +7 -1
- package/drag-drop/directives/drag-preview.d.ts +7 -1
- package/drag-drop/directives/drag.d.ts +4 -14
- package/drag-drop/directives/drop-list-group.d.ts +7 -1
- package/drag-drop/directives/drop-list.d.ts +7 -1
- package/drag-drop/drag-ref.d.ts +6 -0
- package/drag-drop/drop-list-ref.d.ts +3 -2
- package/drag-drop/index.d.ts +2 -2
- package/drag-drop/index.metadata.json +1 -1
- package/esm2015/a11y/a11y-module.js +15 -19
- package/esm2015/a11y/aria-describer/aria-describer.js +177 -167
- package/esm2015/a11y/focus-monitor/focus-monitor.js +337 -345
- package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +30 -34
- package/esm2015/a11y/focus-trap/focus-trap-manager.js +36 -40
- package/esm2015/a11y/focus-trap/focus-trap.js +85 -82
- package/esm2015/a11y/high-contrast-mode/high-contrast-mode-detector.js +56 -60
- package/esm2015/a11y/interactivity-checker/interactivity-checker.js +113 -104
- package/esm2015/a11y/key-manager/list-key-manager.js +29 -4
- package/esm2015/a11y/live-announcer/live-announcer.js +138 -146
- package/esm2015/accordion/accordion-item.js +119 -123
- package/esm2015/accordion/accordion-module.js +9 -13
- package/esm2015/accordion/accordion.js +49 -46
- package/esm2015/accordion/index.js +2 -1
- package/esm2015/bidi/bidi-module.js +9 -13
- package/esm2015/bidi/dir.js +41 -45
- package/esm2015/bidi/directionality.js +27 -31
- package/esm2015/clipboard/clipboard-module.js +9 -13
- package/esm2015/clipboard/clipboard.js +36 -40
- package/esm2015/clipboard/copy-to-clipboard.js +71 -75
- package/esm2015/collections/unique-selection-dispatcher.js +33 -37
- package/esm2015/drag-drop/directives/drag-handle.js +42 -39
- package/esm2015/drag-drop/directives/drag-placeholder.js +24 -21
- package/esm2015/drag-drop/directives/drag-preview.js +29 -26
- package/esm2015/drag-drop/directives/drag.js +313 -319
- package/esm2015/drag-drop/directives/drop-list-group.js +32 -29
- package/esm2015/drag-drop/directives/drop-list.js +251 -250
- package/esm2015/drag-drop/drag-drop-module.js +27 -31
- package/esm2015/drag-drop/drag-drop-registry.js +139 -143
- package/esm2015/drag-drop/drag-drop.js +33 -37
- package/esm2015/drag-drop/drag-ref.js +59 -25
- package/esm2015/drag-drop/drop-list-ref.js +15 -9
- package/esm2015/drag-drop/index.js +3 -2
- package/esm2015/layout/breakpoints-observer.js +81 -85
- package/esm2015/layout/layout-module.js +6 -10
- package/esm2015/layout/media-matcher.js +28 -32
- package/esm2015/observers/observe-content.js +147 -163
- package/esm2015/overlay/dispatchers/base-overlay-dispatcher.js +51 -0
- package/esm2015/overlay/dispatchers/index.js +10 -0
- package/esm2015/overlay/dispatchers/overlay-keyboard-dispatcher.js +79 -0
- package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +94 -0
- package/esm2015/overlay/fullscreen-overlay-container.js +70 -74
- package/esm2015/overlay/index.js +5 -4
- package/esm2015/overlay/overlay-config.js +5 -1
- package/esm2015/overlay/overlay-container.js +69 -73
- package/esm2015/overlay/overlay-directives.js +245 -243
- package/esm2015/overlay/overlay-module.js +15 -19
- package/esm2015/overlay/overlay-ref.js +24 -2
- package/esm2015/overlay/overlay-reference.js +1 -1
- package/esm2015/overlay/overlay.js +93 -92
- package/esm2015/overlay/position/connected-position.js +14 -18
- package/esm2015/overlay/position/overlay-position-builder.js +43 -47
- package/esm2015/overlay/public-api.js +2 -2
- package/esm2015/overlay/scroll/scroll-strategy-options.js +33 -37
- package/esm2015/platform/features/scrolling.js +1 -2
- package/esm2015/platform/platform-module.js +6 -10
- package/esm2015/platform/platform.js +48 -52
- package/esm2015/portal/portal-directives.js +181 -201
- package/esm2015/scrolling/fixed-size-virtual-scroll.js +57 -47
- package/esm2015/scrolling/public-api.js +2 -1
- package/esm2015/scrolling/scroll-dispatcher.js +139 -143
- package/esm2015/scrolling/scrollable.js +135 -139
- package/esm2015/scrolling/scrolling-module.js +32 -40
- package/esm2015/scrolling/viewport-ruler.js +105 -109
- package/esm2015/scrolling/virtual-for-of.js +264 -268
- package/esm2015/scrolling/virtual-scroll-repeater.js +8 -0
- package/esm2015/scrolling/virtual-scroll-viewport.js +318 -322
- package/esm2015/stepper/step-header.js +20 -24
- package/esm2015/stepper/step-label.js +13 -17
- package/esm2015/stepper/stepper-button.js +59 -67
- package/esm2015/stepper/stepper-module.js +24 -28
- package/esm2015/stepper/stepper.js +313 -321
- package/esm2015/table/cell.js +129 -157
- package/esm2015/table/row.js +183 -219
- package/esm2015/table/table-module.js +9 -13
- package/esm2015/table/table.js +765 -785
- package/esm2015/table/text-column.js +85 -89
- package/esm2015/testing/component-harness.js +19 -1
- package/esm2015/testing/harness-environment.js +7 -1
- package/esm2015/text-field/autofill.js +89 -97
- package/esm2015/text-field/autosize.js +225 -229
- package/esm2015/text-field/text-field-module.js +10 -14
- package/esm2015/tree/control/nested-tree-control.js +7 -3
- package/esm2015/tree/nested-node.js +79 -83
- package/esm2015/tree/node.js +17 -21
- package/esm2015/tree/outlet.js +15 -19
- package/esm2015/tree/padding.js +88 -92
- package/esm2015/tree/toggle.js +32 -36
- package/esm2015/tree/tree-module.js +10 -14
- package/esm2015/tree/tree.js +266 -274
- package/esm2015/version.js +1 -1
- package/fesm2015/a11y.js +1021 -996
- package/fesm2015/a11y.js.map +1 -1
- package/fesm2015/accordion.js +173 -175
- package/fesm2015/accordion.js.map +1 -1
- package/fesm2015/bidi.js +74 -83
- package/fesm2015/bidi.js.map +1 -1
- package/fesm2015/cdk.js +1 -1
- package/fesm2015/cdk.js.map +1 -1
- package/fesm2015/clipboard.js +113 -122
- package/fesm2015/clipboard.js.map +1 -1
- package/fesm2015/collections.js +32 -35
- package/fesm2015/collections.js.map +1 -1
- package/fesm2015/drag-drop.js +1005 -961
- package/fesm2015/drag-drop.js.map +1 -1
- package/fesm2015/layout.js +111 -120
- package/fesm2015/layout.js.map +1 -1
- package/fesm2015/observers.js +146 -158
- package/fesm2015/observers.js.map +1 -1
- package/fesm2015/overlay.js +793 -659
- package/fesm2015/overlay.js.map +1 -1
- package/fesm2015/platform.js +52 -59
- package/fesm2015/platform.js.map +1 -1
- package/fesm2015/portal.js +180 -195
- package/fesm2015/portal.js.map +1 -1
- package/fesm2015/scrolling.js +1058 -1060
- package/fesm2015/scrolling.js.map +1 -1
- package/fesm2015/stepper.js +424 -445
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/table.js +1178 -1247
- package/fesm2015/table.js.map +1 -1
- package/fesm2015/testing.js +25 -1
- package/fesm2015/testing.js.map +1 -1
- package/fesm2015/text-field.js +318 -330
- package/fesm2015/text-field.js.map +1 -1
- package/fesm2015/tree.js +517 -537
- package/fesm2015/tree.js.map +1 -1
- package/overlay/dispatchers/base-overlay-dispatcher.d.ts +28 -0
- package/overlay/dispatchers/index.d.ts +9 -0
- package/overlay/{keyboard → dispatchers}/overlay-keyboard-dispatcher.d.ts +4 -10
- package/overlay/dispatchers/overlay-outside-click-dispatcher.d.ts +27 -0
- package/overlay/index.d.ts +4 -3
- package/overlay/index.metadata.json +1 -1
- package/overlay/overlay-config.d.ts +4 -0
- package/overlay/overlay-directives.d.ts +4 -0
- package/overlay/overlay-ref.d.ts +8 -2
- package/overlay/overlay-reference.d.ts +1 -0
- package/overlay/overlay.d.ts +4 -2
- package/overlay/public-api.d.ts +1 -1
- package/package.json +3 -3
- package/schematics/index.js +1 -1
- package/schematics/migration.json +5 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/data/index.js +1 -1
- package/schematics/ng-update/devkit-file-system.d.ts +5 -5
- package/schematics/ng-update/devkit-file-system.js +21 -16
- package/schematics/ng-update/devkit-migration-rule.js +13 -20
- package/schematics/ng-update/devkit-migration.d.ts +0 -2
- package/schematics/ng-update/devkit-migration.js +1 -1
- package/schematics/ng-update/find-stylesheets.d.ts +10 -0
- package/schematics/ng-update/find-stylesheets.js +31 -0
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +7 -2
- package/schematics/ng-update/migrations/attribute-selectors.js +3 -3
- package/schematics/ng-update/migrations/css-selectors.js +3 -3
- package/schematics/ng-update/migrations/element-selectors.js +3 -3
- package/schematics/ng-update/public-api.js +1 -1
- package/schematics/update-tool/component-resource-collector.d.ts +1 -1
- package/schematics/update-tool/component-resource-collector.js +18 -14
- package/schematics/update-tool/file-system.d.ts +19 -14
- package/schematics/update-tool/file-system.js +1 -1
- package/schematics/update-tool/index.d.ts +21 -3
- package/schematics/update-tool/index.js +29 -23
- package/schematics/update-tool/public-api.js +1 -1
- package/schematics/update-tool/target-version.d.ts +2 -1
- package/schematics/update-tool/target-version.js +5 -3
- package/schematics/update-tool/utils/parse-tsconfig.d.ts +2 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +6 -10
- package/schematics/update-tool/utils/virtual-host.d.ts +34 -0
- package/schematics/update-tool/utils/virtual-host.js +62 -0
- package/schematics/update-tool/version-changes.js +4 -6
- package/schematics/utils/index.js +1 -1
- package/schematics/utils/project-tsconfig-paths.d.ts +2 -1
- package/schematics/utils/project-tsconfig-paths.js +1 -1
- package/scrolling/index.metadata.json +1 -1
- package/scrolling/public-api.d.ts +1 -0
- package/scrolling/virtual-for-of.d.ts +2 -1
- package/scrolling/virtual-scroll-repeater.d.ts +16 -0
- package/scrolling/virtual-scroll-viewport.d.ts +4 -4
- package/testing/component-harness.d.ts +12 -0
- package/testing/harness-environment.d.ts +1 -0
- package/tree/control/nested-tree-control.d.ts +7 -2
- package/tree/index.metadata.json +1 -1
- package/esm2015/overlay/keyboard/overlay-keyboard-dispatcher.js +0 -100
package/fesm2015/text-field.js
CHANGED
|
@@ -19,108 +19,102 @@ const listenerOptions = normalizePassiveListenerOptions({ passive: true });
|
|
|
19
19
|
* Based on the following blog post:
|
|
20
20
|
* https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
class AutofillMonitor {
|
|
23
|
+
constructor(_platform, _ngZone) {
|
|
24
|
+
this._platform = _platform;
|
|
25
|
+
this._ngZone = _ngZone;
|
|
26
|
+
this._monitoredElements = new Map();
|
|
27
|
+
}
|
|
28
|
+
monitor(elementOrRef) {
|
|
29
|
+
if (!this._platform.isBrowser) {
|
|
30
|
+
return EMPTY;
|
|
31
|
+
}
|
|
32
|
+
const element = coerceElement(elementOrRef);
|
|
33
|
+
const info = this._monitoredElements.get(element);
|
|
34
|
+
if (info) {
|
|
35
|
+
return info.subject.asObservable();
|
|
28
36
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
const result = new Subject();
|
|
38
|
+
const cssClass = 'cdk-text-field-autofilled';
|
|
39
|
+
const listener = ((event) => {
|
|
40
|
+
// Animation events fire on initial element render, we check for the presence of the autofill
|
|
41
|
+
// CSS class to make sure this is a real change in state, not just the initial render before
|
|
42
|
+
// we fire off events.
|
|
43
|
+
if (event.animationName === 'cdk-text-field-autofill-start' &&
|
|
44
|
+
!element.classList.contains(cssClass)) {
|
|
45
|
+
element.classList.add(cssClass);
|
|
46
|
+
this._ngZone.run(() => result.next({ target: event.target, isAutofilled: true }));
|
|
32
47
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
48
|
+
else if (event.animationName === 'cdk-text-field-autofill-end' &&
|
|
49
|
+
element.classList.contains(cssClass)) {
|
|
50
|
+
element.classList.remove(cssClass);
|
|
51
|
+
this._ngZone.run(() => result.next({ target: event.target, isAutofilled: false }));
|
|
37
52
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this._ngZone.run(() => result.next({ target: event.target, isAutofilled: true }));
|
|
48
|
-
}
|
|
49
|
-
else if (event.animationName === 'cdk-text-field-autofill-end' &&
|
|
50
|
-
element.classList.contains(cssClass)) {
|
|
51
|
-
element.classList.remove(cssClass);
|
|
52
|
-
this._ngZone.run(() => result.next({ target: event.target, isAutofilled: false }));
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
this._ngZone.runOutsideAngular(() => {
|
|
56
|
-
element.addEventListener('animationstart', listener, listenerOptions);
|
|
57
|
-
element.classList.add('cdk-text-field-autofill-monitored');
|
|
58
|
-
});
|
|
59
|
-
this._monitoredElements.set(element, {
|
|
60
|
-
subject: result,
|
|
61
|
-
unlisten: () => {
|
|
62
|
-
element.removeEventListener('animationstart', listener, listenerOptions);
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
return result.asObservable();
|
|
66
|
-
}
|
|
67
|
-
stopMonitoring(elementOrRef) {
|
|
68
|
-
const element = coerceElement(elementOrRef);
|
|
69
|
-
const info = this._monitoredElements.get(element);
|
|
70
|
-
if (info) {
|
|
71
|
-
info.unlisten();
|
|
72
|
-
info.subject.complete();
|
|
73
|
-
element.classList.remove('cdk-text-field-autofill-monitored');
|
|
74
|
-
element.classList.remove('cdk-text-field-autofilled');
|
|
75
|
-
this._monitoredElements.delete(element);
|
|
53
|
+
});
|
|
54
|
+
this._ngZone.runOutsideAngular(() => {
|
|
55
|
+
element.addEventListener('animationstart', listener, listenerOptions);
|
|
56
|
+
element.classList.add('cdk-text-field-autofill-monitored');
|
|
57
|
+
});
|
|
58
|
+
this._monitoredElements.set(element, {
|
|
59
|
+
subject: result,
|
|
60
|
+
unlisten: () => {
|
|
61
|
+
element.removeEventListener('animationstart', listener, listenerOptions);
|
|
76
62
|
}
|
|
63
|
+
});
|
|
64
|
+
return result.asObservable();
|
|
65
|
+
}
|
|
66
|
+
stopMonitoring(elementOrRef) {
|
|
67
|
+
const element = coerceElement(elementOrRef);
|
|
68
|
+
const info = this._monitoredElements.get(element);
|
|
69
|
+
if (info) {
|
|
70
|
+
info.unlisten();
|
|
71
|
+
info.subject.complete();
|
|
72
|
+
element.classList.remove('cdk-text-field-autofill-monitored');
|
|
73
|
+
element.classList.remove('cdk-text-field-autofilled');
|
|
74
|
+
this._monitoredElements.delete(element);
|
|
77
75
|
}
|
|
78
|
-
ngOnDestroy() {
|
|
79
|
-
this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));
|
|
80
|
-
}
|
|
81
76
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
77
|
+
ngOnDestroy() {
|
|
78
|
+
this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
AutofillMonitor.ɵprov = ɵɵdefineInjectable({ factory: function AutofillMonitor_Factory() { return new AutofillMonitor(ɵɵinject(Platform), ɵɵinject(NgZone)); }, token: AutofillMonitor, providedIn: "root" });
|
|
82
|
+
AutofillMonitor.decorators = [
|
|
83
|
+
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
84
|
+
];
|
|
85
|
+
AutofillMonitor.ctorParameters = () => [
|
|
86
|
+
{ type: Platform },
|
|
87
|
+
{ type: NgZone }
|
|
88
|
+
];
|
|
92
89
|
/** A directive that can be used to monitor the autofill state of an input. */
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this._autofillMonitor.stopMonitoring(this._elementRef);
|
|
108
|
-
}
|
|
90
|
+
class CdkAutofill {
|
|
91
|
+
constructor(_elementRef, _autofillMonitor) {
|
|
92
|
+
this._elementRef = _elementRef;
|
|
93
|
+
this._autofillMonitor = _autofillMonitor;
|
|
94
|
+
/** Emits when the autofill state of the element changes. */
|
|
95
|
+
this.cdkAutofill = new EventEmitter();
|
|
96
|
+
}
|
|
97
|
+
ngOnInit() {
|
|
98
|
+
this._autofillMonitor
|
|
99
|
+
.monitor(this._elementRef)
|
|
100
|
+
.subscribe(event => this.cdkAutofill.emit(event));
|
|
101
|
+
}
|
|
102
|
+
ngOnDestroy() {
|
|
103
|
+
this._autofillMonitor.stopMonitoring(this._elementRef);
|
|
109
104
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
})();
|
|
105
|
+
}
|
|
106
|
+
CdkAutofill.decorators = [
|
|
107
|
+
{ type: Directive, args: [{
|
|
108
|
+
selector: '[cdkAutofill]',
|
|
109
|
+
},] }
|
|
110
|
+
];
|
|
111
|
+
CdkAutofill.ctorParameters = () => [
|
|
112
|
+
{ type: ElementRef },
|
|
113
|
+
{ type: AutofillMonitor }
|
|
114
|
+
];
|
|
115
|
+
CdkAutofill.propDecorators = {
|
|
116
|
+
cdkAutofill: [{ type: Output }]
|
|
117
|
+
};
|
|
124
118
|
|
|
125
119
|
/**
|
|
126
120
|
* @license
|
|
@@ -130,244 +124,241 @@ let CdkAutofill = /** @class */ (() => {
|
|
|
130
124
|
* found in the LICENSE file at https://angular.io/license
|
|
131
125
|
*/
|
|
132
126
|
/** Directive to automatically resize a textarea to fit its content. */
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
this._enabled = true;
|
|
143
|
-
/**
|
|
144
|
-
* Value of minRows as of last resize. If the minRows has decreased, the
|
|
145
|
-
* height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
|
|
146
|
-
* does not have the same problem because it does not affect the textarea's scrollHeight.
|
|
147
|
-
*/
|
|
148
|
-
this._previousMinRows = -1;
|
|
149
|
-
this._document = document;
|
|
150
|
-
this._textareaElement = this._elementRef.nativeElement;
|
|
151
|
-
this._measuringClass = _platform.FIREFOX ?
|
|
152
|
-
'cdk-textarea-autosize-measuring-firefox' :
|
|
153
|
-
'cdk-textarea-autosize-measuring';
|
|
154
|
-
}
|
|
155
|
-
/** Minimum amount of rows in the textarea. */
|
|
156
|
-
get minRows() { return this._minRows; }
|
|
157
|
-
set minRows(value) {
|
|
158
|
-
this._minRows = coerceNumberProperty(value);
|
|
159
|
-
this._setMinHeight();
|
|
160
|
-
}
|
|
161
|
-
/** Maximum amount of rows in the textarea. */
|
|
162
|
-
get maxRows() { return this._maxRows; }
|
|
163
|
-
set maxRows(value) {
|
|
164
|
-
this._maxRows = coerceNumberProperty(value);
|
|
165
|
-
this._setMaxHeight();
|
|
166
|
-
}
|
|
167
|
-
/** Whether autosizing is enabled or not */
|
|
168
|
-
get enabled() { return this._enabled; }
|
|
169
|
-
set enabled(value) {
|
|
170
|
-
value = coerceBooleanProperty(value);
|
|
171
|
-
// Only act if the actual value changed. This specifically helps to not run
|
|
172
|
-
// resizeToFitContent too early (i.e. before ngAfterViewInit)
|
|
173
|
-
if (this._enabled !== value) {
|
|
174
|
-
(this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
/** Sets the minimum height of the textarea as determined by minRows. */
|
|
178
|
-
_setMinHeight() {
|
|
179
|
-
const minHeight = this.minRows && this._cachedLineHeight ?
|
|
180
|
-
`${this.minRows * this._cachedLineHeight}px` : null;
|
|
181
|
-
if (minHeight) {
|
|
182
|
-
this._textareaElement.style.minHeight = minHeight;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
/** Sets the maximum height of the textarea as determined by maxRows. */
|
|
186
|
-
_setMaxHeight() {
|
|
187
|
-
const maxHeight = this.maxRows && this._cachedLineHeight ?
|
|
188
|
-
`${this.maxRows * this._cachedLineHeight}px` : null;
|
|
189
|
-
if (maxHeight) {
|
|
190
|
-
this._textareaElement.style.maxHeight = maxHeight;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
ngAfterViewInit() {
|
|
194
|
-
if (this._platform.isBrowser) {
|
|
195
|
-
// Remember the height which we started with in case autosizing is disabled
|
|
196
|
-
this._initialHeight = this._textareaElement.style.height;
|
|
197
|
-
this.resizeToFitContent();
|
|
198
|
-
this._ngZone.runOutsideAngular(() => {
|
|
199
|
-
const window = this._getWindow();
|
|
200
|
-
fromEvent(window, 'resize')
|
|
201
|
-
.pipe(auditTime(16), takeUntil(this._destroyed))
|
|
202
|
-
.subscribe(() => this.resizeToFitContent(true));
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
ngOnDestroy() {
|
|
207
|
-
this._destroyed.next();
|
|
208
|
-
this._destroyed.complete();
|
|
209
|
-
}
|
|
127
|
+
class CdkTextareaAutosize {
|
|
128
|
+
constructor(_elementRef, _platform, _ngZone,
|
|
129
|
+
/** @breaking-change 11.0.0 make document required */
|
|
130
|
+
document) {
|
|
131
|
+
this._elementRef = _elementRef;
|
|
132
|
+
this._platform = _platform;
|
|
133
|
+
this._ngZone = _ngZone;
|
|
134
|
+
this._destroyed = new Subject();
|
|
135
|
+
this._enabled = true;
|
|
210
136
|
/**
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
* maxRows. For the initial version, we will assume that the height of a single line in the
|
|
215
|
-
* textarea does not ever change.
|
|
137
|
+
* Value of minRows as of last resize. If the minRows has decreased, the
|
|
138
|
+
* height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
|
|
139
|
+
* does not have the same problem because it does not affect the textarea's scrollHeight.
|
|
216
140
|
*/
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
this._setMinHeight();
|
|
245
|
-
this._setMaxHeight();
|
|
141
|
+
this._previousMinRows = -1;
|
|
142
|
+
this._document = document;
|
|
143
|
+
this._textareaElement = this._elementRef.nativeElement;
|
|
144
|
+
this._measuringClass = _platform.FIREFOX ?
|
|
145
|
+
'cdk-textarea-autosize-measuring-firefox' :
|
|
146
|
+
'cdk-textarea-autosize-measuring';
|
|
147
|
+
}
|
|
148
|
+
/** Minimum amount of rows in the textarea. */
|
|
149
|
+
get minRows() { return this._minRows; }
|
|
150
|
+
set minRows(value) {
|
|
151
|
+
this._minRows = coerceNumberProperty(value);
|
|
152
|
+
this._setMinHeight();
|
|
153
|
+
}
|
|
154
|
+
/** Maximum amount of rows in the textarea. */
|
|
155
|
+
get maxRows() { return this._maxRows; }
|
|
156
|
+
set maxRows(value) {
|
|
157
|
+
this._maxRows = coerceNumberProperty(value);
|
|
158
|
+
this._setMaxHeight();
|
|
159
|
+
}
|
|
160
|
+
/** Whether autosizing is enabled or not */
|
|
161
|
+
get enabled() { return this._enabled; }
|
|
162
|
+
set enabled(value) {
|
|
163
|
+
value = coerceBooleanProperty(value);
|
|
164
|
+
// Only act if the actual value changed. This specifically helps to not run
|
|
165
|
+
// resizeToFitContent too early (i.e. before ngAfterViewInit)
|
|
166
|
+
if (this._enabled !== value) {
|
|
167
|
+
(this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
|
|
246
168
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
169
|
+
}
|
|
170
|
+
/** Sets the minimum height of the textarea as determined by minRows. */
|
|
171
|
+
_setMinHeight() {
|
|
172
|
+
const minHeight = this.minRows && this._cachedLineHeight ?
|
|
173
|
+
`${this.minRows * this._cachedLineHeight}px` : null;
|
|
174
|
+
if (minHeight) {
|
|
175
|
+
this._textareaElement.style.minHeight = minHeight;
|
|
251
176
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
//
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
const textarea = this._elementRef.nativeElement;
|
|
269
|
-
const value = textarea.value;
|
|
270
|
-
// Only resize if the value or minRows have changed since these calculations can be expensive.
|
|
271
|
-
if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
const placeholderText = textarea.placeholder;
|
|
275
|
-
// Reset the textarea height to auto in order to shrink back to its default size.
|
|
276
|
-
// Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
|
|
277
|
-
// Long placeholders that are wider than the textarea width may lead to a bigger scrollHeight
|
|
278
|
-
// value. To ensure that the scrollHeight is not bigger than the content, the placeholders
|
|
279
|
-
// need to be removed temporarily.
|
|
280
|
-
textarea.classList.add(this._measuringClass);
|
|
281
|
-
textarea.placeholder = '';
|
|
282
|
-
// The measuring class includes a 2px padding to workaround an issue with Chrome,
|
|
283
|
-
// so we account for that extra space here by subtracting 4 (2px top + 2px bottom).
|
|
284
|
-
const height = textarea.scrollHeight - 4;
|
|
285
|
-
// Use the scrollHeight to know how large the textarea *would* be if fit its entire value.
|
|
286
|
-
textarea.style.height = `${height}px`;
|
|
287
|
-
textarea.classList.remove(this._measuringClass);
|
|
288
|
-
textarea.placeholder = placeholderText;
|
|
177
|
+
}
|
|
178
|
+
/** Sets the maximum height of the textarea as determined by maxRows. */
|
|
179
|
+
_setMaxHeight() {
|
|
180
|
+
const maxHeight = this.maxRows && this._cachedLineHeight ?
|
|
181
|
+
`${this.maxRows * this._cachedLineHeight}px` : null;
|
|
182
|
+
if (maxHeight) {
|
|
183
|
+
this._textareaElement.style.maxHeight = maxHeight;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
ngAfterViewInit() {
|
|
187
|
+
if (this._platform.isBrowser) {
|
|
188
|
+
// Remember the height which we started with in case autosizing is disabled
|
|
189
|
+
this._initialHeight = this._textareaElement.style.height;
|
|
190
|
+
this.resizeToFitContent();
|
|
289
191
|
this._ngZone.runOutsideAngular(() => {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
setTimeout(() => this._scrollToCaretPosition(textarea));
|
|
295
|
-
}
|
|
192
|
+
const window = this._getWindow();
|
|
193
|
+
fromEvent(window, 'resize')
|
|
194
|
+
.pipe(auditTime(16), takeUntil(this._destroyed))
|
|
195
|
+
.subscribe(() => this.resizeToFitContent(true));
|
|
296
196
|
});
|
|
297
|
-
this._previousValue = value;
|
|
298
|
-
this._previousMinRows = this._minRows;
|
|
299
197
|
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
198
|
+
}
|
|
199
|
+
ngOnDestroy() {
|
|
200
|
+
this._destroyed.next();
|
|
201
|
+
this._destroyed.complete();
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Cache the height of a single-row textarea if it has not already been cached.
|
|
205
|
+
*
|
|
206
|
+
* We need to know how large a single "row" of a textarea is in order to apply minRows and
|
|
207
|
+
* maxRows. For the initial version, we will assume that the height of a single line in the
|
|
208
|
+
* textarea does not ever change.
|
|
209
|
+
*/
|
|
210
|
+
_cacheTextareaLineHeight() {
|
|
211
|
+
if (this._cachedLineHeight) {
|
|
212
|
+
return;
|
|
309
213
|
}
|
|
310
|
-
//
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
//
|
|
314
|
-
|
|
315
|
-
|
|
214
|
+
// Use a clone element because we have to override some styles.
|
|
215
|
+
let textareaClone = this._textareaElement.cloneNode(false);
|
|
216
|
+
textareaClone.rows = 1;
|
|
217
|
+
// Use `position: absolute` so that this doesn't cause a browser layout and use
|
|
218
|
+
// `visibility: hidden` so that nothing is rendered. Clear any other styles that
|
|
219
|
+
// would affect the height.
|
|
220
|
+
textareaClone.style.position = 'absolute';
|
|
221
|
+
textareaClone.style.visibility = 'hidden';
|
|
222
|
+
textareaClone.style.border = 'none';
|
|
223
|
+
textareaClone.style.padding = '0';
|
|
224
|
+
textareaClone.style.height = '';
|
|
225
|
+
textareaClone.style.minHeight = '';
|
|
226
|
+
textareaClone.style.maxHeight = '';
|
|
227
|
+
// In Firefox it happens that textarea elements are always bigger than the specified amount
|
|
228
|
+
// of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.
|
|
229
|
+
// As a workaround that removes the extra space for the scrollbar, we can just set overflow
|
|
230
|
+
// to hidden. This ensures that there is no invalid calculation of the line height.
|
|
231
|
+
// See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654
|
|
232
|
+
textareaClone.style.overflow = 'hidden';
|
|
233
|
+
this._textareaElement.parentNode.appendChild(textareaClone);
|
|
234
|
+
this._cachedLineHeight = textareaClone.clientHeight;
|
|
235
|
+
this._textareaElement.parentNode.removeChild(textareaClone);
|
|
236
|
+
// Min and max heights have to be re-calculated if the cached line height changes
|
|
237
|
+
this._setMinHeight();
|
|
238
|
+
this._setMaxHeight();
|
|
239
|
+
}
|
|
240
|
+
ngDoCheck() {
|
|
241
|
+
if (this._platform.isBrowser) {
|
|
242
|
+
this.resizeToFitContent();
|
|
316
243
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Resize the textarea to fit its content.
|
|
247
|
+
* @param force Whether to force a height recalculation. By default the height will be
|
|
248
|
+
* recalculated only if the value changed since the last call.
|
|
249
|
+
*/
|
|
250
|
+
resizeToFitContent(force = false) {
|
|
251
|
+
// If autosizing is disabled, just skip everything else
|
|
252
|
+
if (!this._enabled) {
|
|
253
|
+
return;
|
|
320
254
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
255
|
+
this._cacheTextareaLineHeight();
|
|
256
|
+
// If we haven't determined the line-height yet, we know we're still hidden and there's no point
|
|
257
|
+
// in checking the height of the textarea.
|
|
258
|
+
if (!this._cachedLineHeight) {
|
|
259
|
+
return;
|
|
325
260
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
261
|
+
const textarea = this._elementRef.nativeElement;
|
|
262
|
+
const value = textarea.value;
|
|
263
|
+
// Only resize if the value or minRows have changed since these calculations can be expensive.
|
|
264
|
+
if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
const placeholderText = textarea.placeholder;
|
|
268
|
+
// Reset the textarea height to auto in order to shrink back to its default size.
|
|
269
|
+
// Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
|
|
270
|
+
// Long placeholders that are wider than the textarea width may lead to a bigger scrollHeight
|
|
271
|
+
// value. To ensure that the scrollHeight is not bigger than the content, the placeholders
|
|
272
|
+
// need to be removed temporarily.
|
|
273
|
+
textarea.classList.add(this._measuringClass);
|
|
274
|
+
textarea.placeholder = '';
|
|
275
|
+
// The measuring class includes a 2px padding to workaround an issue with Chrome,
|
|
276
|
+
// so we account for that extra space here by subtracting 4 (2px top + 2px bottom).
|
|
277
|
+
const height = textarea.scrollHeight - 4;
|
|
278
|
+
// Use the scrollHeight to know how large the textarea *would* be if fit its entire value.
|
|
279
|
+
textarea.style.height = `${height}px`;
|
|
280
|
+
textarea.classList.remove(this._measuringClass);
|
|
281
|
+
textarea.placeholder = placeholderText;
|
|
282
|
+
this._ngZone.runOutsideAngular(() => {
|
|
283
|
+
if (typeof requestAnimationFrame !== 'undefined') {
|
|
284
|
+
requestAnimationFrame(() => this._scrollToCaretPosition(textarea));
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
setTimeout(() => this._scrollToCaretPosition(textarea));
|
|
342
288
|
}
|
|
289
|
+
});
|
|
290
|
+
this._previousValue = value;
|
|
291
|
+
this._previousMinRows = this._minRows;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Resets the textarea to its original size
|
|
295
|
+
*/
|
|
296
|
+
reset() {
|
|
297
|
+
// Do not try to change the textarea, if the initialHeight has not been determined yet
|
|
298
|
+
// This might potentially remove styles when reset() is called before ngAfterViewInit
|
|
299
|
+
if (this._initialHeight !== undefined) {
|
|
300
|
+
this._textareaElement.style.height = this._initialHeight;
|
|
343
301
|
}
|
|
344
302
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
303
|
+
// In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
|
|
304
|
+
// to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
|
|
305
|
+
// can move this back into `host`.
|
|
306
|
+
// tslint:disable:no-host-decorator-in-concrete
|
|
307
|
+
_noopInputHandler() {
|
|
308
|
+
// no-op handler that ensures we're running change detection on input events.
|
|
309
|
+
}
|
|
310
|
+
/** Access injected document if available or fallback to global document reference */
|
|
311
|
+
_getDocument() {
|
|
312
|
+
return this._document || document;
|
|
313
|
+
}
|
|
314
|
+
/** Use defaultView of injected document if available or fallback to global window reference */
|
|
315
|
+
_getWindow() {
|
|
316
|
+
const doc = this._getDocument();
|
|
317
|
+
return doc.defaultView || window;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Scrolls a textarea to the caret position. On Firefox resizing the textarea will
|
|
321
|
+
* prevent it from scrolling to the caret position. We need to re-set the selection
|
|
322
|
+
* in order for it to scroll to the proper position.
|
|
323
|
+
*/
|
|
324
|
+
_scrollToCaretPosition(textarea) {
|
|
325
|
+
const { selectionStart, selectionEnd } = textarea;
|
|
326
|
+
const document = this._getDocument();
|
|
327
|
+
// IE will throw an "Unspecified error" if we try to set the selection range after the
|
|
328
|
+
// element has been removed from the DOM. Assert that the directive hasn't been destroyed
|
|
329
|
+
// between the time we requested the animation frame and when it was executed.
|
|
330
|
+
// Also note that we have to assert that the textarea is focused before we set the
|
|
331
|
+
// selection range. Setting the selection range on a non-focused textarea will cause
|
|
332
|
+
// it to receive focus on IE and Edge.
|
|
333
|
+
if (!this._destroyed.isStopped && document.activeElement === textarea) {
|
|
334
|
+
textarea.setSelectionRange(selectionStart, selectionEnd);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
CdkTextareaAutosize.decorators = [
|
|
339
|
+
{ type: Directive, args: [{
|
|
340
|
+
selector: 'textarea[cdkTextareaAutosize]',
|
|
341
|
+
exportAs: 'cdkTextareaAutosize',
|
|
342
|
+
host: {
|
|
343
|
+
'class': 'cdk-textarea-autosize',
|
|
344
|
+
// Textarea elements that have the directive applied should have a single row by default.
|
|
345
|
+
// Browsers normally show two rows by default and therefore this limits the minRows binding.
|
|
346
|
+
'rows': '1',
|
|
347
|
+
},
|
|
348
|
+
},] }
|
|
349
|
+
];
|
|
350
|
+
CdkTextareaAutosize.ctorParameters = () => [
|
|
351
|
+
{ type: ElementRef },
|
|
352
|
+
{ type: Platform },
|
|
353
|
+
{ type: NgZone },
|
|
354
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [DOCUMENT,] }] }
|
|
355
|
+
];
|
|
356
|
+
CdkTextareaAutosize.propDecorators = {
|
|
357
|
+
minRows: [{ type: Input, args: ['cdkAutosizeMinRows',] }],
|
|
358
|
+
maxRows: [{ type: Input, args: ['cdkAutosizeMaxRows',] }],
|
|
359
|
+
enabled: [{ type: Input, args: ['cdkTextareaAutosize',] }],
|
|
360
|
+
_noopInputHandler: [{ type: HostListener, args: ['input',] }]
|
|
361
|
+
};
|
|
371
362
|
|
|
372
363
|
/**
|
|
373
364
|
* @license
|
|
@@ -376,18 +367,15 @@ let CdkTextareaAutosize = /** @class */ (() => {
|
|
|
376
367
|
* Use of this source code is governed by an MIT-style license that can be
|
|
377
368
|
* found in the LICENSE file at https://angular.io/license
|
|
378
369
|
*/
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
];
|
|
389
|
-
return TextFieldModule;
|
|
390
|
-
})();
|
|
370
|
+
class TextFieldModule {
|
|
371
|
+
}
|
|
372
|
+
TextFieldModule.decorators = [
|
|
373
|
+
{ type: NgModule, args: [{
|
|
374
|
+
declarations: [CdkAutofill, CdkTextareaAutosize],
|
|
375
|
+
imports: [PlatformModule],
|
|
376
|
+
exports: [CdkAutofill, CdkTextareaAutosize],
|
|
377
|
+
},] }
|
|
378
|
+
];
|
|
391
379
|
|
|
392
380
|
/**
|
|
393
381
|
* @license
|