@angular/cdk 22.2.0 → 22.2.2
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/fesm2022/_a11y-module-chunk.mjs +22 -22
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
- package/fesm2022/_directionality-chunk.mjs +3 -3
- package/fesm2022/_focus-monitor-chunk.mjs +9 -9
- package/fesm2022/_id-generator-chunk.mjs +3 -3
- package/fesm2022/_overlay-module-chunk.mjs +58 -46
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +3 -3
- package/fesm2022/_style-loader-chunk.mjs +3 -3
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
- package/fesm2022/a11y.mjs +9 -9
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +7 -7
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/dialog.mjs +10 -10
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +33 -33
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +4 -4
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +49 -49
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers-private.mjs +3 -3
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +4 -8
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/portal.mjs +10 -10
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +35 -35
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +22 -22
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +73 -73
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/text-field.mjs +16 -16
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_overlay-module-chunk.d.ts +15 -9
- package/types/dialog.d.ts +3 -7
- package/types/overlay.d.ts +1 -1
package/fesm2022/text-field.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import '@angular/common';
|
|
|
10
10
|
class _CdkTextFieldStyleLoader {
|
|
11
11
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
12
|
minVersion: "12.0.0",
|
|
13
|
-
version: "22.2.
|
|
13
|
+
version: "22.2.1",
|
|
14
14
|
ngImport: i0,
|
|
15
15
|
type: _CdkTextFieldStyleLoader,
|
|
16
16
|
deps: [],
|
|
@@ -18,7 +18,7 @@ class _CdkTextFieldStyleLoader {
|
|
|
18
18
|
});
|
|
19
19
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
20
20
|
minVersion: "14.0.0",
|
|
21
|
-
version: "22.2.
|
|
21
|
+
version: "22.2.1",
|
|
22
22
|
type: _CdkTextFieldStyleLoader,
|
|
23
23
|
isStandalone: true,
|
|
24
24
|
selector: "ng-component",
|
|
@@ -36,7 +36,7 @@ class _CdkTextFieldStyleLoader {
|
|
|
36
36
|
}
|
|
37
37
|
i0.ɵɵngDeclareClassMetadata({
|
|
38
38
|
minVersion: "12.0.0",
|
|
39
|
-
version: "22.2.
|
|
39
|
+
version: "22.2.1",
|
|
40
40
|
ngImport: i0,
|
|
41
41
|
type: _CdkTextFieldStyleLoader,
|
|
42
42
|
decorators: [{
|
|
@@ -114,7 +114,7 @@ class AutofillMonitor {
|
|
|
114
114
|
}
|
|
115
115
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
116
116
|
minVersion: "12.0.0",
|
|
117
|
-
version: "22.2.
|
|
117
|
+
version: "22.2.1",
|
|
118
118
|
ngImport: i0,
|
|
119
119
|
type: AutofillMonitor,
|
|
120
120
|
deps: [],
|
|
@@ -122,14 +122,14 @@ class AutofillMonitor {
|
|
|
122
122
|
});
|
|
123
123
|
static ɵprov = i0.ɵɵngDeclareService({
|
|
124
124
|
minVersion: "22.0.0",
|
|
125
|
-
version: "22.2.
|
|
125
|
+
version: "22.2.1",
|
|
126
126
|
ngImport: i0,
|
|
127
127
|
type: AutofillMonitor
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
i0.ɵɵngDeclareClassMetadata({
|
|
131
131
|
minVersion: "12.0.0",
|
|
132
|
-
version: "22.2.
|
|
132
|
+
version: "22.2.1",
|
|
133
133
|
ngImport: i0,
|
|
134
134
|
type: AutofillMonitor,
|
|
135
135
|
decorators: [{
|
|
@@ -148,7 +148,7 @@ class CdkAutofill {
|
|
|
148
148
|
}
|
|
149
149
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
150
150
|
minVersion: "12.0.0",
|
|
151
|
-
version: "22.2.
|
|
151
|
+
version: "22.2.1",
|
|
152
152
|
ngImport: i0,
|
|
153
153
|
type: CdkAutofill,
|
|
154
154
|
deps: [],
|
|
@@ -156,7 +156,7 @@ class CdkAutofill {
|
|
|
156
156
|
});
|
|
157
157
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
158
158
|
minVersion: "14.0.0",
|
|
159
|
-
version: "22.2.
|
|
159
|
+
version: "22.2.1",
|
|
160
160
|
type: CdkAutofill,
|
|
161
161
|
isStandalone: true,
|
|
162
162
|
selector: "[cdkAutofill]",
|
|
@@ -168,7 +168,7 @@ class CdkAutofill {
|
|
|
168
168
|
}
|
|
169
169
|
i0.ɵɵngDeclareClassMetadata({
|
|
170
170
|
minVersion: "12.0.0",
|
|
171
|
-
version: "22.2.
|
|
171
|
+
version: "22.2.1",
|
|
172
172
|
ngImport: i0,
|
|
173
173
|
type: CdkAutofill,
|
|
174
174
|
decorators: [{
|
|
@@ -380,7 +380,7 @@ class CdkTextareaAutosize {
|
|
|
380
380
|
}
|
|
381
381
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
382
382
|
minVersion: "12.0.0",
|
|
383
|
-
version: "22.2.
|
|
383
|
+
version: "22.2.1",
|
|
384
384
|
ngImport: i0,
|
|
385
385
|
type: CdkTextareaAutosize,
|
|
386
386
|
deps: [],
|
|
@@ -388,7 +388,7 @@ class CdkTextareaAutosize {
|
|
|
388
388
|
});
|
|
389
389
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
390
390
|
minVersion: "16.1.0",
|
|
391
|
-
version: "22.2.
|
|
391
|
+
version: "22.2.1",
|
|
392
392
|
type: CdkTextareaAutosize,
|
|
393
393
|
isStandalone: true,
|
|
394
394
|
selector: "textarea[cdkTextareaAutosize]",
|
|
@@ -413,7 +413,7 @@ class CdkTextareaAutosize {
|
|
|
413
413
|
}
|
|
414
414
|
i0.ɵɵngDeclareClassMetadata({
|
|
415
415
|
minVersion: "12.0.0",
|
|
416
|
-
version: "22.2.
|
|
416
|
+
version: "22.2.1",
|
|
417
417
|
ngImport: i0,
|
|
418
418
|
type: CdkTextareaAutosize,
|
|
419
419
|
decorators: [{
|
|
@@ -454,7 +454,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
454
454
|
class TextFieldModule {
|
|
455
455
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
456
456
|
minVersion: "12.0.0",
|
|
457
|
-
version: "22.2.
|
|
457
|
+
version: "22.2.1",
|
|
458
458
|
ngImport: i0,
|
|
459
459
|
type: TextFieldModule,
|
|
460
460
|
deps: [],
|
|
@@ -462,7 +462,7 @@ class TextFieldModule {
|
|
|
462
462
|
});
|
|
463
463
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
464
464
|
minVersion: "14.0.0",
|
|
465
|
-
version: "22.2.
|
|
465
|
+
version: "22.2.1",
|
|
466
466
|
ngImport: i0,
|
|
467
467
|
type: TextFieldModule,
|
|
468
468
|
imports: [CdkAutofill, CdkTextareaAutosize],
|
|
@@ -470,14 +470,14 @@ class TextFieldModule {
|
|
|
470
470
|
});
|
|
471
471
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
472
472
|
minVersion: "12.0.0",
|
|
473
|
-
version: "22.2.
|
|
473
|
+
version: "22.2.1",
|
|
474
474
|
ngImport: i0,
|
|
475
475
|
type: TextFieldModule
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
478
|
i0.ɵɵngDeclareClassMetadata({
|
|
479
479
|
minVersion: "12.0.0",
|
|
480
|
-
version: "22.2.
|
|
480
|
+
version: "22.2.1",
|
|
481
481
|
ngImport: i0,
|
|
482
482
|
type: TextFieldModule,
|
|
483
483
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/text-field-style-loader.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/autofill.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/autosize.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/text-field-module.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.dev/license\n */\n\nimport {Component, ViewEncapsulation} from '@angular/core';\n\n/** Component used to load the structural styles of the text field. */\n@Component({\n template: '',\n encapsulation: ViewEncapsulation.None,\n styleUrl: 'text-field-prebuilt.css',\n host: {'cdk-text-field-style-loader': ''},\n})\nexport class _CdkTextFieldStyleLoader {}\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.dev/license\n */\n\nimport {Platform} from '../platform';\nimport {\n Directive,\n ElementRef,\n EventEmitter,\n inject,\n Service,\n NgZone,\n OnDestroy,\n OnInit,\n Output,\n RendererFactory2,\n} from '@angular/core';\nimport {_CdkPrivateStyleLoader} from '../private';\nimport {coerceElement} from '../coercion';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {_CdkTextFieldStyleLoader} from './text-field-style-loader';\n\n/** An event that is emitted when the autofill state of an input changes. */\nexport type AutofillEvent = {\n /** The element whose autofill state changes. */\n target: Element;\n /** Whether the element is currently autofilled. */\n isAutofilled: boolean;\n};\n\n/** Used to track info about currently monitored elements. */\ntype MonitoredElementInfo = {\n readonly subject: Subject<AutofillEvent>;\n unlisten: () => void;\n};\n\n/** Options to pass to the animationstart listener. */\nconst listenerOptions = {passive: true};\n\n/**\n * An injectable service that can be used to monitor the autofill state of an input.\n * Based on the following blog post:\n * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7\n */\n@Service()\nexport class AutofillMonitor implements OnDestroy {\n private _platform = inject(Platform);\n private _ngZone = inject(NgZone);\n private _renderer = inject(RendererFactory2).createRenderer(null, null);\n\n private _styleLoader = inject(_CdkPrivateStyleLoader);\n private _monitoredElements = new Map<Element, MonitoredElementInfo>();\n\n /**\n * Monitor for changes in the autofill state of the given input element.\n * @param element The element to monitor.\n * @return A stream of autofill state changes.\n */\n monitor(element: Element): Observable<AutofillEvent>;\n\n /**\n * Monitor for changes in the autofill state of the given input element.\n * @param element The element to monitor.\n * @return A stream of autofill state changes.\n */\n monitor(element: ElementRef<Element>): Observable<AutofillEvent>;\n\n monitor(elementOrRef: Element | ElementRef<Element>): Observable<AutofillEvent> {\n if (!this._platform.isBrowser) {\n return EMPTY;\n }\n\n this._styleLoader.load(_CdkTextFieldStyleLoader);\n\n const element = coerceElement(elementOrRef);\n const info = this._monitoredElements.get(element);\n\n if (info) {\n return info.subject;\n }\n\n const subject = new Subject<AutofillEvent>();\n const cssClass = 'cdk-text-field-autofilled';\n const listener = (event: AnimationEvent) => {\n // Animation events fire on initial element render, we check for the presence of the autofill\n // CSS class to make sure this is a real change in state, not just the initial render before\n // we fire off events.\n if (\n event.animationName === 'cdk-text-field-autofill-start' &&\n !element.classList.contains(cssClass)\n ) {\n element.classList.add(cssClass);\n this._ngZone.run(() => subject.next({target: event.target as Element, isAutofilled: true}));\n } else if (\n event.animationName === 'cdk-text-field-autofill-end' &&\n element.classList.contains(cssClass)\n ) {\n element.classList.remove(cssClass);\n this._ngZone.run(() =>\n subject.next({target: event.target as Element, isAutofilled: false}),\n );\n }\n };\n\n const unlisten = this._ngZone.runOutsideAngular(() => {\n element.classList.add('cdk-text-field-autofill-monitored');\n return this._renderer.listen(element, 'animationstart', listener, listenerOptions);\n });\n\n this._monitoredElements.set(element, {subject, unlisten});\n return subject;\n }\n\n /**\n * Stop monitoring the autofill state of the given input element.\n * @param element The element to stop monitoring.\n */\n stopMonitoring(element: Element): void;\n\n /**\n * Stop monitoring the autofill state of the given input element.\n * @param element The element to stop monitoring.\n */\n stopMonitoring(element: ElementRef<Element>): void;\n\n stopMonitoring(elementOrRef: Element | ElementRef<Element>): void {\n const element = coerceElement(elementOrRef);\n const info = this._monitoredElements.get(element);\n\n if (info) {\n info.unlisten();\n info.subject.complete();\n element.classList.remove('cdk-text-field-autofill-monitored');\n element.classList.remove('cdk-text-field-autofilled');\n this._monitoredElements.delete(element);\n }\n }\n\n ngOnDestroy() {\n this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));\n }\n}\n\n/** A directive that can be used to monitor the autofill state of an input. */\n@Directive({\n selector: '[cdkAutofill]',\n})\nexport class CdkAutofill implements OnDestroy, OnInit {\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private _autofillMonitor = inject(AutofillMonitor);\n\n /** Emits when the autofill state of the element changes. */\n @Output() readonly cdkAutofill = new EventEmitter<AutofillEvent>();\n\n ngOnInit() {\n this._autofillMonitor\n .monitor(this._elementRef)\n .subscribe(event => this.cdkAutofill.emit(event));\n }\n\n ngOnDestroy() {\n this._autofillMonitor.stopMonitoring(this._elementRef);\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.dev/license\n */\n\nimport {NumberInput, coerceNumberProperty} from '../coercion';\nimport {\n Directive,\n ElementRef,\n Input,\n AfterViewInit,\n DoCheck,\n OnDestroy,\n NgZone,\n booleanAttribute,\n inject,\n Renderer2,\n DOCUMENT,\n} from '@angular/core';\n\nimport {Platform} from '../platform';\nimport {_CdkPrivateStyleLoader} from '../private';\nimport {auditTime} from 'rxjs/operators';\nimport {Subject} from 'rxjs';\nimport {_CdkTextFieldStyleLoader} from './text-field-style-loader';\n\n/** Directive to automatically resize a textarea to fit its content. */\n@Directive({\n selector: 'textarea[cdkTextareaAutosize]',\n exportAs: 'cdkTextareaAutosize',\n host: {\n 'class': 'cdk-textarea-autosize',\n // Textarea elements that have the directive applied should have a single row by default.\n // Browsers normally show two rows by default and therefore this limits the minRows binding.\n 'rows': '1',\n '(input)': '_noopInputHandler()',\n },\n})\nexport class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private _platform = inject(Platform);\n private _ngZone = inject(NgZone);\n private _renderer = inject(Renderer2);\n private _resizeEvents = new Subject<void>();\n\n /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */\n private _previousValue?: string;\n private _initialHeight: string | undefined;\n private readonly _destroyed = new Subject<void>();\n private _listenerCleanups: (() => void)[] | undefined;\n\n private _minRows!: number;\n private _maxRows!: number;\n private _enabled: boolean = true;\n\n /**\n * Value of minRows as of last resize. If the minRows has decreased, the\n * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight\n * does not have the same problem because it does not affect the textarea's scrollHeight.\n */\n private _previousMinRows: number = -1;\n\n private _textareaElement: HTMLTextAreaElement;\n\n /** Minimum amount of rows in the textarea. */\n @Input('cdkAutosizeMinRows')\n get minRows(): number {\n return this._minRows;\n }\n set minRows(value: NumberInput) {\n this._minRows = coerceNumberProperty(value);\n this._setMinHeight();\n }\n\n /** Maximum amount of rows in the textarea. */\n @Input('cdkAutosizeMaxRows')\n get maxRows(): number {\n return this._maxRows;\n }\n set maxRows(value: NumberInput) {\n this._maxRows = coerceNumberProperty(value);\n this._setMaxHeight();\n }\n\n /** Whether autosizing is enabled or not */\n @Input({alias: 'cdkTextareaAutosize', transform: booleanAttribute})\n get enabled(): boolean {\n return this._enabled;\n }\n set enabled(value: boolean) {\n // Only act if the actual value changed. This specifically helps to not run\n // resizeToFitContent too early (i.e. before ngAfterViewInit)\n if (this._enabled !== value) {\n (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();\n }\n }\n\n @Input()\n get placeholder(): string {\n return this._textareaElement.placeholder;\n }\n set placeholder(value: string) {\n this._cachedPlaceholderHeight = undefined;\n\n if (value) {\n this._textareaElement.setAttribute('placeholder', value);\n } else {\n this._textareaElement.removeAttribute('placeholder');\n }\n\n this._cacheTextareaPlaceholderHeight();\n }\n\n /** Cached height of a textarea with a single row. */\n private _cachedLineHeight?: number;\n /** Cached height of a textarea with only the placeholder. */\n private _cachedPlaceholderHeight?: number;\n\n /** Used to reference correct document/window */\n protected _document = inject(DOCUMENT);\n\n private _hasFocus = false;\n\n private _isViewInited = false;\n\n constructor() {\n const styleLoader = inject(_CdkPrivateStyleLoader);\n styleLoader.load(_CdkTextFieldStyleLoader);\n this._textareaElement = this._elementRef.nativeElement as HTMLTextAreaElement;\n }\n\n /** Sets the minimum height of the textarea as determined by minRows. */\n _setMinHeight(): void {\n const minHeight =\n this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;\n\n if (minHeight) {\n this._textareaElement.style.minHeight = minHeight;\n }\n }\n\n /** Sets the maximum height of the textarea as determined by maxRows. */\n _setMaxHeight(): void {\n const maxHeight =\n this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;\n\n if (maxHeight) {\n this._textareaElement.style.maxHeight = maxHeight;\n }\n }\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n // Remember the height which we started with in case autosizing is disabled\n this._initialHeight = this._textareaElement.style.height;\n this.resizeToFitContent();\n\n this._ngZone.runOutsideAngular(() => {\n this._listenerCleanups = [\n this._renderer.listen('window', 'resize', () => this._resizeEvents.next()),\n this._renderer.listen(this._textareaElement, 'focus', this._handleFocusEvent),\n this._renderer.listen(this._textareaElement, 'blur', this._handleFocusEvent),\n ];\n this._resizeEvents.pipe(auditTime(16)).subscribe(() => {\n // Clear the cached heights since the styles can change\n // when the window is resized (e.g. by media queries).\n this._cachedLineHeight = this._cachedPlaceholderHeight = undefined;\n this.resizeToFitContent(true);\n });\n });\n\n this._isViewInited = true;\n this.resizeToFitContent(true);\n }\n }\n\n ngOnDestroy() {\n this._listenerCleanups?.forEach(cleanup => cleanup());\n this._resizeEvents.complete();\n this._destroyed.next();\n this._destroyed.complete();\n }\n\n /**\n * Cache the height of a single-row textarea if it has not already been cached.\n *\n * We need to know how large a single \"row\" of a textarea is in order to apply minRows and\n * maxRows. For the initial version, we will assume that the height of a single line in the\n * textarea does not ever change.\n */\n private _cacheTextareaLineHeight(): void {\n if (this._cachedLineHeight) {\n return;\n }\n\n // Use a clone element because we have to override some styles.\n const textareaClone = this._textareaElement.cloneNode(false) as HTMLTextAreaElement;\n const cloneStyles = textareaClone.style;\n textareaClone.rows = 1;\n\n // Use `position: absolute` so that this doesn't cause a browser layout and use\n // `visibility: hidden` so that nothing is rendered. Clear any other styles that\n // would affect the height.\n cloneStyles.position = 'absolute';\n cloneStyles.visibility = 'hidden';\n cloneStyles.border = 'none';\n cloneStyles.padding = '0';\n cloneStyles.height = '';\n cloneStyles.minHeight = '';\n cloneStyles.maxHeight = '';\n\n // App styles might be messing with the height through the positioning properties.\n cloneStyles.top = cloneStyles.bottom = cloneStyles.left = cloneStyles.right = 'auto';\n\n // In Firefox it happens that textarea elements are always bigger than the specified amount\n // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.\n // As a workaround that removes the extra space for the scrollbar, we can just set overflow\n // to hidden. This ensures that there is no invalid calculation of the line height.\n // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654\n cloneStyles.overflow = 'hidden';\n\n this._textareaElement.parentNode!.appendChild(textareaClone);\n this._cachedLineHeight = textareaClone.clientHeight;\n textareaClone.remove();\n\n // Min and max heights have to be re-calculated if the cached line height changes\n this._setMinHeight();\n this._setMaxHeight();\n }\n\n private _measureScrollHeight(): number {\n const element = this._textareaElement;\n const previousMargin = element.style.marginBottom || '';\n const isFirefox = this._platform.FIREFOX;\n const needsMarginFiller = this._hasFocus;\n const measuringClass = isFirefox\n ? 'cdk-textarea-autosize-measuring-firefox'\n : 'cdk-textarea-autosize-measuring';\n\n // In some cases the page might move around while we're measuring the `textarea`. We\n // work around it by assigning a temporary margin with the same height as the `textarea` so that\n // it occupies the same amount of space. See #23233 and #23834.\n if (needsMarginFiller) {\n element.style.marginBottom = `${element.clientHeight}px`;\n }\n\n // Reset the textarea height to auto in order to shrink back to its default size.\n // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.\n element.classList.add(measuringClass);\n // The measuring class includes a 2px padding to workaround an issue with Chrome,\n // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).\n const scrollHeight = element.scrollHeight - 4;\n element.classList.remove(measuringClass);\n\n if (needsMarginFiller) {\n element.style.marginBottom = previousMargin;\n }\n\n return scrollHeight;\n }\n\n private _cacheTextareaPlaceholderHeight(): void {\n if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {\n return;\n }\n if (!this.placeholder) {\n this._cachedPlaceholderHeight = 0;\n return;\n }\n\n const value = this._textareaElement.value;\n\n this._textareaElement.value = this._textareaElement.placeholder;\n this._cachedPlaceholderHeight = this._measureScrollHeight();\n this._textareaElement.value = value;\n }\n\n /** Handles `focus` and `blur` events. */\n private _handleFocusEvent = (event: FocusEvent) => {\n this._hasFocus = event.type === 'focus';\n };\n\n ngDoCheck() {\n if (this._platform.isBrowser) {\n this.resizeToFitContent();\n }\n }\n\n /**\n * Resize the textarea to fit its content.\n * @param force Whether to force a height recalculation. By default the height will be\n * recalculated only if the value changed since the last call.\n */\n resizeToFitContent(force: boolean = false) {\n // If autosizing is disabled, just skip everything else\n if (!this._enabled) {\n return;\n }\n\n this._cacheTextareaLineHeight();\n this._cacheTextareaPlaceholderHeight();\n\n // If we haven't determined the line-height yet, we know we're still hidden and there's no point\n // in checking the height of the textarea.\n if (!this._cachedLineHeight) {\n return;\n }\n\n const textarea = this._elementRef.nativeElement as HTMLTextAreaElement;\n const value = textarea.value;\n\n // Only resize if the value or minRows have changed since these calculations can be expensive.\n if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {\n return;\n }\n\n const scrollHeight = this._measureScrollHeight();\n const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);\n\n // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.\n textarea.style.height = `${height}px`;\n\n this._ngZone.runOutsideAngular(() => {\n if (typeof requestAnimationFrame !== 'undefined') {\n requestAnimationFrame(() => this._scrollToCaretPosition(textarea));\n } else {\n setTimeout(() => this._scrollToCaretPosition(textarea));\n }\n });\n\n this._previousValue = value;\n this._previousMinRows = this._minRows;\n }\n\n /**\n * Resets the textarea to its original size\n */\n reset() {\n // Do not try to change the textarea, if the initialHeight has not been determined yet\n // This might potentially remove styles when reset() is called before ngAfterViewInit\n if (this._initialHeight !== undefined) {\n this._textareaElement.style.height = this._initialHeight;\n }\n }\n\n _noopInputHandler() {\n // no-op handler that ensures we're running change detection on input events.\n }\n\n /**\n * Scrolls a textarea to the caret position. On Firefox resizing the textarea will\n * prevent it from scrolling to the caret position. We need to re-set the selection\n * in order for it to scroll to the proper position.\n */\n private _scrollToCaretPosition(textarea: HTMLTextAreaElement) {\n const {selectionStart, selectionEnd} = textarea;\n\n // IE will throw an \"Unspecified error\" if we try to set the selection range after the\n // element has been removed from the DOM. Assert that the directive hasn't been destroyed\n // between the time we requested the animation frame and when it was executed.\n // Also note that we have to assert that the textarea is focused before we set the\n // selection range. Setting the selection range on a non-focused textarea will cause\n // it to receive focus on IE and Edge.\n if (!this._destroyed.isStopped && this._hasFocus) {\n textarea.setSelectionRange(selectionStart, selectionEnd);\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.dev/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {CdkAutofill} from './autofill';\nimport {CdkTextareaAutosize} from './autosize';\n\n@NgModule({\n imports: [CdkAutofill, CdkTextareaAutosize],\n exports: [CdkAutofill, CdkTextareaAutosize],\n})\nexport class TextFieldModule {}\n"],"names":[],"mappings":";;;;;;;;;MAiBa,wBAAwB,CAAA;;;;;UAAxB,wBAAwB;AAAA,IAAA,IAAA,EAAA,EAAA;AAAA,IAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA;AAAA,GAAA,CAAA;AAAxB,EAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA;AAAA,IAAA,UAAA,EAAA,QAAA;AAAA,IAAA,OAAA,EAAA,eAAA;AAAA,IAAA,IAAA,EAAA,wBAAwB;;;;;;;;;cALzB,EAAE;AAAA,IAAA,QAAA,EAAA,IAAA;IAAA,MAAA,EAAA,CAAA,2sBAAA,CAAA;AAAA,IAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA;AAAA,GAAA,CAAA;;;;;;QAKD,wBAAwB;AAAA,EAAA,UAAA,EAAA,CAAA;UANpC,SAAS;;gBACE,EAAE;MAAA,aAAA,EACG,iBAAiB,CAAC,IAAI;YAE/B;AAAC,QAAA,6BAA6B,EAAE;OAAG;MAAA,MAAA,EAAA,CAAA,2sBAAA;KAAA;;;;AC0B3C,MAAM,eAAe,GAAG;AAAC,EAAA,OAAO,EAAE;CAAK;MAQ1B,eAAe,C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QAAA,MAAM,EAAE,GAAG;AACX,QAAA,SAAS,EAAE;AACZ;KACF;;;;;YA4BE,KAAK;aAAC,oBAAoB;;;YAU1B,KAAK;aAAC,oBAAoB;;;YAU1B,KAAK;AAAC,MAAA,IAAA,EAAA,CAAA;AAAC,QAAA,KAAK,EAAE,qBAAqB;AAAE,QAAA,SAAS,EAAE;OAAiB;;;YAYjE;;;;;MCpFU,eAAe,CAAA;;;;;UAAf,eAAe;AAAA,IAAA,IAAA,EAAA,EAAA;AAAA,IAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA;AAAA,GAAA,CAAA;AAAf,EAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA;AAAA,IAAA,UAAA,EAAA,QAAA;AAAA,IAAA,OAAA,EAAA,eAAA;AAAA,IAAA,QAAA,EAAA,EAAA;AAAA,IAAA,IAAA,EAAA,eAAe;cAHhB,WAAW,EAAE,mBAAmB,CAAA;AAAA,IAAA,OAAA,EAAA,CAChC,WAAW,EAAE,mBAAmB;AAAA,GAAA,CAAA;;;;;UAE/B;AAAe,GAAA,CAAA;;;;;;QAAf,eAAe;AAAA,EAAA,UAAA,EAAA,CAAA;UAJ3B,QAAQ;AAAC,IAAA,IAAA,EAAA,CAAA;AACR,MAAA,OAAO,EAAE,CAAC,WAAW,EAAE,mBAAmB,CAAC;AAC3C,MAAA,OAAO,EAAE,CAAC,WAAW,EAAE,mBAAmB;KAC3C;;;;"}
|
|
1
|
+
{"version":3,"file":"text-field.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/text-field-style-loader.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/autofill.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/autosize.ts","../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/cdk/text-field/text-field-module.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.dev/license\n */\n\nimport {Component, ViewEncapsulation} from '@angular/core';\n\n/** Component used to load the structural styles of the text field. */\n@Component({\n template: '',\n encapsulation: ViewEncapsulation.None,\n styleUrl: 'text-field-prebuilt.css',\n host: {'cdk-text-field-style-loader': ''},\n})\nexport class _CdkTextFieldStyleLoader {}\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.dev/license\n */\n\nimport {Platform} from '../platform';\nimport {\n Directive,\n ElementRef,\n EventEmitter,\n inject,\n Service,\n NgZone,\n OnDestroy,\n OnInit,\n Output,\n RendererFactory2,\n} from '@angular/core';\nimport {_CdkPrivateStyleLoader} from '../private';\nimport {coerceElement} from '../coercion';\nimport {EMPTY, Observable, Subject} from 'rxjs';\nimport {_CdkTextFieldStyleLoader} from './text-field-style-loader';\n\n/** An event that is emitted when the autofill state of an input changes. */\nexport type AutofillEvent = {\n /** The element whose autofill state changes. */\n target: Element;\n /** Whether the element is currently autofilled. */\n isAutofilled: boolean;\n};\n\n/** Used to track info about currently monitored elements. */\ntype MonitoredElementInfo = {\n readonly subject: Subject<AutofillEvent>;\n unlisten: () => void;\n};\n\n/** Options to pass to the animationstart listener. */\nconst listenerOptions = {passive: true};\n\n/**\n * An injectable service that can be used to monitor the autofill state of an input.\n * Based on the following blog post:\n * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7\n */\n@Service()\nexport class AutofillMonitor implements OnDestroy {\n private _platform = inject(Platform);\n private _ngZone = inject(NgZone);\n private _renderer = inject(RendererFactory2).createRenderer(null, null);\n\n private _styleLoader = inject(_CdkPrivateStyleLoader);\n private _monitoredElements = new Map<Element, MonitoredElementInfo>();\n\n /**\n * Monitor for changes in the autofill state of the given input element.\n * @param element The element to monitor.\n * @return A stream of autofill state changes.\n */\n monitor(element: Element): Observable<AutofillEvent>;\n\n /**\n * Monitor for changes in the autofill state of the given input element.\n * @param element The element to monitor.\n * @return A stream of autofill state changes.\n */\n monitor(element: ElementRef<Element>): Observable<AutofillEvent>;\n\n monitor(elementOrRef: Element | ElementRef<Element>): Observable<AutofillEvent> {\n if (!this._platform.isBrowser) {\n return EMPTY;\n }\n\n this._styleLoader.load(_CdkTextFieldStyleLoader);\n\n const element = coerceElement(elementOrRef);\n const info = this._monitoredElements.get(element);\n\n if (info) {\n return info.subject;\n }\n\n const subject = new Subject<AutofillEvent>();\n const cssClass = 'cdk-text-field-autofilled';\n const listener = (event: AnimationEvent) => {\n // Animation events fire on initial element render, we check for the presence of the autofill\n // CSS class to make sure this is a real change in state, not just the initial render before\n // we fire off events.\n if (\n event.animationName === 'cdk-text-field-autofill-start' &&\n !element.classList.contains(cssClass)\n ) {\n element.classList.add(cssClass);\n this._ngZone.run(() => subject.next({target: event.target as Element, isAutofilled: true}));\n } else if (\n event.animationName === 'cdk-text-field-autofill-end' &&\n element.classList.contains(cssClass)\n ) {\n element.classList.remove(cssClass);\n this._ngZone.run(() =>\n subject.next({target: event.target as Element, isAutofilled: false}),\n );\n }\n };\n\n const unlisten = this._ngZone.runOutsideAngular(() => {\n element.classList.add('cdk-text-field-autofill-monitored');\n return this._renderer.listen(element, 'animationstart', listener, listenerOptions);\n });\n\n this._monitoredElements.set(element, {subject, unlisten});\n return subject;\n }\n\n /**\n * Stop monitoring the autofill state of the given input element.\n * @param element The element to stop monitoring.\n */\n stopMonitoring(element: Element): void;\n\n /**\n * Stop monitoring the autofill state of the given input element.\n * @param element The element to stop monitoring.\n */\n stopMonitoring(element: ElementRef<Element>): void;\n\n stopMonitoring(elementOrRef: Element | ElementRef<Element>): void {\n const element = coerceElement(elementOrRef);\n const info = this._monitoredElements.get(element);\n\n if (info) {\n info.unlisten();\n info.subject.complete();\n element.classList.remove('cdk-text-field-autofill-monitored');\n element.classList.remove('cdk-text-field-autofilled');\n this._monitoredElements.delete(element);\n }\n }\n\n ngOnDestroy() {\n this._monitoredElements.forEach((_info, element) => this.stopMonitoring(element));\n }\n}\n\n/** A directive that can be used to monitor the autofill state of an input. */\n@Directive({\n selector: '[cdkAutofill]',\n})\nexport class CdkAutofill implements OnDestroy, OnInit {\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private _autofillMonitor = inject(AutofillMonitor);\n\n /** Emits when the autofill state of the element changes. */\n @Output() readonly cdkAutofill = new EventEmitter<AutofillEvent>();\n\n ngOnInit() {\n this._autofillMonitor\n .monitor(this._elementRef)\n .subscribe(event => this.cdkAutofill.emit(event));\n }\n\n ngOnDestroy() {\n this._autofillMonitor.stopMonitoring(this._elementRef);\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.dev/license\n */\n\nimport {NumberInput, coerceNumberProperty} from '../coercion';\nimport {\n Directive,\n ElementRef,\n Input,\n AfterViewInit,\n DoCheck,\n OnDestroy,\n NgZone,\n booleanAttribute,\n inject,\n Renderer2,\n DOCUMENT,\n} from '@angular/core';\n\nimport {Platform} from '../platform';\nimport {_CdkPrivateStyleLoader} from '../private';\nimport {auditTime} from 'rxjs/operators';\nimport {Subject} from 'rxjs';\nimport {_CdkTextFieldStyleLoader} from './text-field-style-loader';\n\n/** Directive to automatically resize a textarea to fit its content. */\n@Directive({\n selector: 'textarea[cdkTextareaAutosize]',\n exportAs: 'cdkTextareaAutosize',\n host: {\n 'class': 'cdk-textarea-autosize',\n // Textarea elements that have the directive applied should have a single row by default.\n // Browsers normally show two rows by default and therefore this limits the minRows binding.\n 'rows': '1',\n '(input)': '_noopInputHandler()',\n },\n})\nexport class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {\n private _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private _platform = inject(Platform);\n private _ngZone = inject(NgZone);\n private _renderer = inject(Renderer2);\n private _resizeEvents = new Subject<void>();\n\n /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */\n private _previousValue?: string;\n private _initialHeight: string | undefined;\n private readonly _destroyed = new Subject<void>();\n private _listenerCleanups: (() => void)[] | undefined;\n\n private _minRows!: number;\n private _maxRows!: number;\n private _enabled: boolean = true;\n\n /**\n * Value of minRows as of last resize. If the minRows has decreased, the\n * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight\n * does not have the same problem because it does not affect the textarea's scrollHeight.\n */\n private _previousMinRows: number = -1;\n\n private _textareaElement: HTMLTextAreaElement;\n\n /** Minimum amount of rows in the textarea. */\n @Input('cdkAutosizeMinRows')\n get minRows(): number {\n return this._minRows;\n }\n set minRows(value: NumberInput) {\n this._minRows = coerceNumberProperty(value);\n this._setMinHeight();\n }\n\n /** Maximum amount of rows in the textarea. */\n @Input('cdkAutosizeMaxRows')\n get maxRows(): number {\n return this._maxRows;\n }\n set maxRows(value: NumberInput) {\n this._maxRows = coerceNumberProperty(value);\n this._setMaxHeight();\n }\n\n /** Whether autosizing is enabled or not */\n @Input({alias: 'cdkTextareaAutosize', transform: booleanAttribute})\n get enabled(): boolean {\n return this._enabled;\n }\n set enabled(value: boolean) {\n // Only act if the actual value changed. This specifically helps to not run\n // resizeToFitContent too early (i.e. before ngAfterViewInit)\n if (this._enabled !== value) {\n (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();\n }\n }\n\n @Input()\n get placeholder(): string {\n return this._textareaElement.placeholder;\n }\n set placeholder(value: string) {\n this._cachedPlaceholderHeight = undefined;\n\n if (value) {\n this._textareaElement.setAttribute('placeholder', value);\n } else {\n this._textareaElement.removeAttribute('placeholder');\n }\n\n this._cacheTextareaPlaceholderHeight();\n }\n\n /** Cached height of a textarea with a single row. */\n private _cachedLineHeight?: number;\n /** Cached height of a textarea with only the placeholder. */\n private _cachedPlaceholderHeight?: number;\n\n /** Used to reference correct document/window */\n protected _document = inject(DOCUMENT);\n\n private _hasFocus = false;\n\n private _isViewInited = false;\n\n constructor() {\n const styleLoader = inject(_CdkPrivateStyleLoader);\n styleLoader.load(_CdkTextFieldStyleLoader);\n this._textareaElement = this._elementRef.nativeElement as HTMLTextAreaElement;\n }\n\n /** Sets the minimum height of the textarea as determined by minRows. */\n _setMinHeight(): void {\n const minHeight =\n this.minRows && this._cachedLineHeight ? `${this.minRows * this._cachedLineHeight}px` : null;\n\n if (minHeight) {\n this._textareaElement.style.minHeight = minHeight;\n }\n }\n\n /** Sets the maximum height of the textarea as determined by maxRows. */\n _setMaxHeight(): void {\n const maxHeight =\n this.maxRows && this._cachedLineHeight ? `${this.maxRows * this._cachedLineHeight}px` : null;\n\n if (maxHeight) {\n this._textareaElement.style.maxHeight = maxHeight;\n }\n }\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n // Remember the height which we started with in case autosizing is disabled\n this._initialHeight = this._textareaElement.style.height;\n this.resizeToFitContent();\n\n this._ngZone.runOutsideAngular(() => {\n this._listenerCleanups = [\n this._renderer.listen('window', 'resize', () => this._resizeEvents.next()),\n this._renderer.listen(this._textareaElement, 'focus', this._handleFocusEvent),\n this._renderer.listen(this._textareaElement, 'blur', this._handleFocusEvent),\n ];\n this._resizeEvents.pipe(auditTime(16)).subscribe(() => {\n // Clear the cached heights since the styles can change\n // when the window is resized (e.g. by media queries).\n this._cachedLineHeight = this._cachedPlaceholderHeight = undefined;\n this.resizeToFitContent(true);\n });\n });\n\n this._isViewInited = true;\n this.resizeToFitContent(true);\n }\n }\n\n ngOnDestroy() {\n this._listenerCleanups?.forEach(cleanup => cleanup());\n this._resizeEvents.complete();\n this._destroyed.next();\n this._destroyed.complete();\n }\n\n /**\n * Cache the height of a single-row textarea if it has not already been cached.\n *\n * We need to know how large a single \"row\" of a textarea is in order to apply minRows and\n * maxRows. For the initial version, we will assume that the height of a single line in the\n * textarea does not ever change.\n */\n private _cacheTextareaLineHeight(): void {\n if (this._cachedLineHeight) {\n return;\n }\n\n // Use a clone element because we have to override some styles.\n const textareaClone = this._textareaElement.cloneNode(false) as HTMLTextAreaElement;\n const cloneStyles = textareaClone.style;\n textareaClone.rows = 1;\n\n // Use `position: absolute` so that this doesn't cause a browser layout and use\n // `visibility: hidden` so that nothing is rendered. Clear any other styles that\n // would affect the height.\n cloneStyles.position = 'absolute';\n cloneStyles.visibility = 'hidden';\n cloneStyles.border = 'none';\n cloneStyles.padding = '0';\n cloneStyles.height = '';\n cloneStyles.minHeight = '';\n cloneStyles.maxHeight = '';\n\n // App styles might be messing with the height through the positioning properties.\n cloneStyles.top = cloneStyles.bottom = cloneStyles.left = cloneStyles.right = 'auto';\n\n // In Firefox it happens that textarea elements are always bigger than the specified amount\n // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.\n // As a workaround that removes the extra space for the scrollbar, we can just set overflow\n // to hidden. This ensures that there is no invalid calculation of the line height.\n // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654\n cloneStyles.overflow = 'hidden';\n\n this._textareaElement.parentNode!.appendChild(textareaClone);\n this._cachedLineHeight = textareaClone.clientHeight;\n textareaClone.remove();\n\n // Min and max heights have to be re-calculated if the cached line height changes\n this._setMinHeight();\n this._setMaxHeight();\n }\n\n private _measureScrollHeight(): number {\n const element = this._textareaElement;\n const previousMargin = element.style.marginBottom || '';\n const isFirefox = this._platform.FIREFOX;\n const needsMarginFiller = this._hasFocus;\n const measuringClass = isFirefox\n ? 'cdk-textarea-autosize-measuring-firefox'\n : 'cdk-textarea-autosize-measuring';\n\n // In some cases the page might move around while we're measuring the `textarea`. We\n // work around it by assigning a temporary margin with the same height as the `textarea` so that\n // it occupies the same amount of space. See #23233 and #23834.\n if (needsMarginFiller) {\n element.style.marginBottom = `${element.clientHeight}px`;\n }\n\n // Reset the textarea height to auto in order to shrink back to its default size.\n // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.\n element.classList.add(measuringClass);\n // The measuring class includes a 2px padding to workaround an issue with Chrome,\n // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).\n const scrollHeight = element.scrollHeight - 4;\n element.classList.remove(measuringClass);\n\n if (needsMarginFiller) {\n element.style.marginBottom = previousMargin;\n }\n\n return scrollHeight;\n }\n\n private _cacheTextareaPlaceholderHeight(): void {\n if (!this._isViewInited || this._cachedPlaceholderHeight != undefined) {\n return;\n }\n if (!this.placeholder) {\n this._cachedPlaceholderHeight = 0;\n return;\n }\n\n const value = this._textareaElement.value;\n\n this._textareaElement.value = this._textareaElement.placeholder;\n this._cachedPlaceholderHeight = this._measureScrollHeight();\n this._textareaElement.value = value;\n }\n\n /** Handles `focus` and `blur` events. */\n private _handleFocusEvent = (event: FocusEvent) => {\n this._hasFocus = event.type === 'focus';\n };\n\n ngDoCheck() {\n if (this._platform.isBrowser) {\n this.resizeToFitContent();\n }\n }\n\n /**\n * Resize the textarea to fit its content.\n * @param force Whether to force a height recalculation. By default the height will be\n * recalculated only if the value changed since the last call.\n */\n resizeToFitContent(force: boolean = false) {\n // If autosizing is disabled, just skip everything else\n if (!this._enabled) {\n return;\n }\n\n this._cacheTextareaLineHeight();\n this._cacheTextareaPlaceholderHeight();\n\n // If we haven't determined the line-height yet, we know we're still hidden and there's no point\n // in checking the height of the textarea.\n if (!this._cachedLineHeight) {\n return;\n }\n\n const textarea = this._elementRef.nativeElement as HTMLTextAreaElement;\n const value = textarea.value;\n\n // Only resize if the value or minRows have changed since these calculations can be expensive.\n if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {\n return;\n }\n\n const scrollHeight = this._measureScrollHeight();\n const height = Math.max(scrollHeight, this._cachedPlaceholderHeight || 0);\n\n // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.\n textarea.style.height = `${height}px`;\n\n this._ngZone.runOutsideAngular(() => {\n if (typeof requestAnimationFrame !== 'undefined') {\n requestAnimationFrame(() => this._scrollToCaretPosition(textarea));\n } else {\n setTimeout(() => this._scrollToCaretPosition(textarea));\n }\n });\n\n this._previousValue = value;\n this._previousMinRows = this._minRows;\n }\n\n /**\n * Resets the textarea to its original size\n */\n reset() {\n // Do not try to change the textarea, if the initialHeight has not been determined yet\n // This might potentially remove styles when reset() is called before ngAfterViewInit\n if (this._initialHeight !== undefined) {\n this._textareaElement.style.height = this._initialHeight;\n }\n }\n\n _noopInputHandler() {\n // no-op handler that ensures we're running change detection on input events.\n }\n\n /**\n * Scrolls a textarea to the caret position. On Firefox resizing the textarea will\n * prevent it from scrolling to the caret position. We need to re-set the selection\n * in order for it to scroll to the proper position.\n */\n private _scrollToCaretPosition(textarea: HTMLTextAreaElement) {\n const {selectionStart, selectionEnd} = textarea;\n\n // IE will throw an \"Unspecified error\" if we try to set the selection range after the\n // element has been removed from the DOM. Assert that the directive hasn't been destroyed\n // between the time we requested the animation frame and when it was executed.\n // Also note that we have to assert that the textarea is focused before we set the\n // selection range. Setting the selection range on a non-focused textarea will cause\n // it to receive focus on IE and Edge.\n if (!this._destroyed.isStopped && this._hasFocus) {\n textarea.setSelectionRange(selectionStart, selectionEnd);\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.dev/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {CdkAutofill} from './autofill';\nimport {CdkTextareaAutosize} from './autosize';\n\n@NgModule({\n imports: [CdkAutofill, CdkTextareaAutosize],\n exports: [CdkAutofill, CdkTextareaAutosize],\n})\nexport class TextFieldModule {}\n"],"names":[],"mappings":";;;;;;;;;MAiBa,wBAAwB,CAAA;;;;;UAAxB,wBAAwB;AAAA,IAAA,IAAA,EAAA,EAAA;AAAA,IAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA;AAAA,GAAA,CAAA;AAAxB,EAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA;AAAA,IAAA,UAAA,EAAA,QAAA;AAAA,IAAA,OAAA,EAAA,QAAA;AAAA,IAAA,IAAA,EAAA,wBAAwB;;;;;;;;;cALzB,EAAE;AAAA,IAAA,QAAA,EAAA,IAAA;IAAA,MAAA,EAAA,CAAA,2sBAAA,C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;;;"}
|
package/fesm2022/tree.mjs
CHANGED
|
@@ -123,7 +123,7 @@ class CdkTreeNodeOutlet {
|
|
|
123
123
|
});
|
|
124
124
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
125
125
|
minVersion: "12.0.0",
|
|
126
|
-
version: "22.2.
|
|
126
|
+
version: "22.2.1",
|
|
127
127
|
ngImport: i0,
|
|
128
128
|
type: CdkTreeNodeOutlet,
|
|
129
129
|
deps: [],
|
|
@@ -131,7 +131,7 @@ class CdkTreeNodeOutlet {
|
|
|
131
131
|
});
|
|
132
132
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
133
133
|
minVersion: "14.0.0",
|
|
134
|
-
version: "22.2.
|
|
134
|
+
version: "22.2.1",
|
|
135
135
|
type: CdkTreeNodeOutlet,
|
|
136
136
|
isStandalone: true,
|
|
137
137
|
selector: "[cdkTreeNodeOutlet]",
|
|
@@ -140,7 +140,7 @@ class CdkTreeNodeOutlet {
|
|
|
140
140
|
}
|
|
141
141
|
i0.ɵɵngDeclareClassMetadata({
|
|
142
142
|
minVersion: "12.0.0",
|
|
143
|
-
version: "22.2.
|
|
143
|
+
version: "22.2.1",
|
|
144
144
|
ngImport: i0,
|
|
145
145
|
type: CdkTreeNodeOutlet,
|
|
146
146
|
decorators: [{
|
|
@@ -165,7 +165,7 @@ class CdkTreeNodeDef {
|
|
|
165
165
|
when;
|
|
166
166
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
167
167
|
minVersion: "12.0.0",
|
|
168
|
-
version: "22.2.
|
|
168
|
+
version: "22.2.1",
|
|
169
169
|
ngImport: i0,
|
|
170
170
|
type: CdkTreeNodeDef,
|
|
171
171
|
deps: [],
|
|
@@ -173,7 +173,7 @@ class CdkTreeNodeDef {
|
|
|
173
173
|
});
|
|
174
174
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
175
175
|
minVersion: "14.0.0",
|
|
176
|
-
version: "22.2.
|
|
176
|
+
version: "22.2.1",
|
|
177
177
|
type: CdkTreeNodeDef,
|
|
178
178
|
isStandalone: true,
|
|
179
179
|
selector: "[cdkTreeNodeDef]",
|
|
@@ -185,7 +185,7 @@ class CdkTreeNodeDef {
|
|
|
185
185
|
}
|
|
186
186
|
i0.ɵɵngDeclareClassMetadata({
|
|
187
187
|
minVersion: "12.0.0",
|
|
188
|
-
version: "22.2.
|
|
188
|
+
version: "22.2.1",
|
|
189
189
|
ngImport: i0,
|
|
190
190
|
type: CdkTreeNodeDef,
|
|
191
191
|
decorators: [{
|
|
@@ -816,7 +816,7 @@ class CdkTree {
|
|
|
816
816
|
}
|
|
817
817
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
818
818
|
minVersion: "12.0.0",
|
|
819
|
-
version: "22.2.
|
|
819
|
+
version: "22.2.1",
|
|
820
820
|
ngImport: i0,
|
|
821
821
|
type: CdkTree,
|
|
822
822
|
deps: [],
|
|
@@ -824,7 +824,7 @@ class CdkTree {
|
|
|
824
824
|
});
|
|
825
825
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
826
826
|
minVersion: "14.0.0",
|
|
827
|
-
version: "22.2.
|
|
827
|
+
version: "22.2.1",
|
|
828
828
|
type: CdkTree,
|
|
829
829
|
isStandalone: true,
|
|
830
830
|
selector: "cdk-tree",
|
|
@@ -872,7 +872,7 @@ class CdkTree {
|
|
|
872
872
|
}
|
|
873
873
|
i0.ɵɵngDeclareClassMetadata({
|
|
874
874
|
minVersion: "12.0.0",
|
|
875
|
-
version: "22.2.
|
|
875
|
+
version: "22.2.1",
|
|
876
876
|
ngImport: i0,
|
|
877
877
|
type: CdkTree,
|
|
878
878
|
decorators: [{
|
|
@@ -1088,7 +1088,7 @@ class CdkTreeNode {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1090
1090
|
minVersion: "12.0.0",
|
|
1091
|
-
version: "22.2.
|
|
1091
|
+
version: "22.2.1",
|
|
1092
1092
|
ngImport: i0,
|
|
1093
1093
|
type: CdkTreeNode,
|
|
1094
1094
|
deps: [],
|
|
@@ -1096,7 +1096,7 @@ class CdkTreeNode {
|
|
|
1096
1096
|
});
|
|
1097
1097
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1098
1098
|
minVersion: "16.1.0",
|
|
1099
|
-
version: "22.2.
|
|
1099
|
+
version: "22.2.1",
|
|
1100
1100
|
type: CdkTreeNode,
|
|
1101
1101
|
isStandalone: true,
|
|
1102
1102
|
selector: "cdk-tree-node",
|
|
@@ -1134,7 +1134,7 @@ class CdkTreeNode {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
i0.ɵɵngDeclareClassMetadata({
|
|
1136
1136
|
minVersion: "12.0.0",
|
|
1137
|
-
version: "22.2.
|
|
1137
|
+
version: "22.2.1",
|
|
1138
1138
|
ngImport: i0,
|
|
1139
1139
|
type: CdkTreeNode,
|
|
1140
1140
|
decorators: [{
|
|
@@ -1249,7 +1249,7 @@ class CdkNestedTreeNode extends CdkTreeNode {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1251
1251
|
minVersion: "12.0.0",
|
|
1252
|
-
version: "22.2.
|
|
1252
|
+
version: "22.2.1",
|
|
1253
1253
|
ngImport: i0,
|
|
1254
1254
|
type: CdkNestedTreeNode,
|
|
1255
1255
|
deps: null,
|
|
@@ -1257,7 +1257,7 @@ class CdkNestedTreeNode extends CdkTreeNode {
|
|
|
1257
1257
|
});
|
|
1258
1258
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1259
1259
|
minVersion: "14.0.0",
|
|
1260
|
-
version: "22.2.
|
|
1260
|
+
version: "22.2.1",
|
|
1261
1261
|
type: CdkNestedTreeNode,
|
|
1262
1262
|
isStandalone: true,
|
|
1263
1263
|
selector: "cdk-nested-tree-node",
|
|
@@ -1283,7 +1283,7 @@ class CdkNestedTreeNode extends CdkTreeNode {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
i0.ɵɵngDeclareClassMetadata({
|
|
1285
1285
|
minVersion: "12.0.0",
|
|
1286
|
-
version: "22.2.
|
|
1286
|
+
version: "22.2.1",
|
|
1287
1287
|
ngImport: i0,
|
|
1288
1288
|
type: CdkNestedTreeNode,
|
|
1289
1289
|
decorators: [{
|
|
@@ -1381,7 +1381,7 @@ class CdkTreeNodePadding {
|
|
|
1381
1381
|
}
|
|
1382
1382
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1383
1383
|
minVersion: "12.0.0",
|
|
1384
|
-
version: "22.2.
|
|
1384
|
+
version: "22.2.1",
|
|
1385
1385
|
ngImport: i0,
|
|
1386
1386
|
type: CdkTreeNodePadding,
|
|
1387
1387
|
deps: [],
|
|
@@ -1389,7 +1389,7 @@ class CdkTreeNodePadding {
|
|
|
1389
1389
|
});
|
|
1390
1390
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1391
1391
|
minVersion: "16.1.0",
|
|
1392
|
-
version: "22.2.
|
|
1392
|
+
version: "22.2.1",
|
|
1393
1393
|
type: CdkTreeNodePadding,
|
|
1394
1394
|
isStandalone: true,
|
|
1395
1395
|
selector: "[cdkTreeNodePadding]",
|
|
@@ -1402,7 +1402,7 @@ class CdkTreeNodePadding {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
i0.ɵɵngDeclareClassMetadata({
|
|
1404
1404
|
minVersion: "12.0.0",
|
|
1405
|
-
version: "22.2.
|
|
1405
|
+
version: "22.2.1",
|
|
1406
1406
|
ngImport: i0,
|
|
1407
1407
|
type: CdkTreeNodePadding,
|
|
1408
1408
|
decorators: [{
|
|
@@ -1438,7 +1438,7 @@ class CdkTreeNodeToggle {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1440
1440
|
minVersion: "12.0.0",
|
|
1441
|
-
version: "22.2.
|
|
1441
|
+
version: "22.2.1",
|
|
1442
1442
|
ngImport: i0,
|
|
1443
1443
|
type: CdkTreeNodeToggle,
|
|
1444
1444
|
deps: [],
|
|
@@ -1446,7 +1446,7 @@ class CdkTreeNodeToggle {
|
|
|
1446
1446
|
});
|
|
1447
1447
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
1448
1448
|
minVersion: "16.1.0",
|
|
1449
|
-
version: "22.2.
|
|
1449
|
+
version: "22.2.1",
|
|
1450
1450
|
type: CdkTreeNodeToggle,
|
|
1451
1451
|
isStandalone: true,
|
|
1452
1452
|
selector: "[cdkTreeNodeToggle]",
|
|
@@ -1468,7 +1468,7 @@ class CdkTreeNodeToggle {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
i0.ɵɵngDeclareClassMetadata({
|
|
1470
1470
|
minVersion: "12.0.0",
|
|
1471
|
-
version: "22.2.
|
|
1471
|
+
version: "22.2.1",
|
|
1472
1472
|
ngImport: i0,
|
|
1473
1473
|
type: CdkTreeNodeToggle,
|
|
1474
1474
|
decorators: [{
|
|
@@ -1498,7 +1498,7 @@ const EXPORTED_DECLARATIONS = [CdkNestedTreeNode, CdkTreeNodeDef, CdkTreeNodePad
|
|
|
1498
1498
|
class CdkTreeModule {
|
|
1499
1499
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1500
1500
|
minVersion: "12.0.0",
|
|
1501
|
-
version: "22.2.
|
|
1501
|
+
version: "22.2.1",
|
|
1502
1502
|
ngImport: i0,
|
|
1503
1503
|
type: CdkTreeModule,
|
|
1504
1504
|
deps: [],
|
|
@@ -1506,7 +1506,7 @@ class CdkTreeModule {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
1508
1508
|
minVersion: "14.0.0",
|
|
1509
|
-
version: "22.2.
|
|
1509
|
+
version: "22.2.1",
|
|
1510
1510
|
ngImport: i0,
|
|
1511
1511
|
type: CdkTreeModule,
|
|
1512
1512
|
imports: [CdkNestedTreeNode, CdkTreeNodeDef, CdkTreeNodePadding, CdkTreeNodeToggle, CdkTree, CdkTreeNode, CdkTreeNodeOutlet],
|
|
@@ -1514,14 +1514,14 @@ class CdkTreeModule {
|
|
|
1514
1514
|
});
|
|
1515
1515
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
1516
1516
|
minVersion: "12.0.0",
|
|
1517
|
-
version: "22.2.
|
|
1517
|
+
version: "22.2.1",
|
|
1518
1518
|
ngImport: i0,
|
|
1519
1519
|
type: CdkTreeModule
|
|
1520
1520
|
});
|
|
1521
1521
|
}
|
|
1522
1522
|
i0.ɵɵngDeclareClassMetadata({
|
|
1523
1523
|
minVersion: "12.0.0",
|
|
1524
|
-
version: "22.2.
|
|
1524
|
+
version: "22.2.1",
|
|
1525
1525
|
ngImport: i0,
|
|
1526
1526
|
type: CdkTreeModule,
|
|
1527
1527
|
decorators: [{
|