Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
4.6 KB
|
Line | |
---|
1 | {"version":3,"file":"autosize.d.ts","sources":["autosize.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { ElementRef, AfterViewInit, DoCheck, OnDestroy, NgZone } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\n/** Directive to automatically resize a textarea to fit its content. */\nexport declare class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDestroy {\n private _elementRef;\n private _platform;\n private _ngZone;\n /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */\n private _previousValue?;\n private _initialHeight;\n private readonly _destroyed;\n private _minRows;\n private _maxRows;\n private _enabled;\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;\n private _textareaElement;\n /** Minimum amount of rows in the textarea. */\n get minRows(): number;\n set minRows(value: number);\n /** Maximum amount of rows in the textarea. */\n get maxRows(): number;\n set maxRows(value: number);\n /** Whether autosizing is enabled or not */\n get enabled(): boolean;\n set enabled(value: boolean);\n get placeholder(): string;\n set placeholder(value: string);\n /** Cached height of a textarea with a single row. */\n private _cachedLineHeight;\n /** Cached height of a textarea with only the placeholder. */\n private _cachedPlaceholderHeight?;\n /** Used to reference correct document/window */\n protected _document?: Document;\n private _hasFocus;\n private _isViewInited;\n constructor(_elementRef: ElementRef<HTMLElement>, _platform: Platform, _ngZone: NgZone, \n /** @breaking-change 11.0.0 make document required */\n document?: any);\n /** Sets the minimum height of the textarea as determined by minRows. */\n _setMinHeight(): void;\n /** Sets the maximum height of the textarea as determined by maxRows. */\n _setMaxHeight(): void;\n ngAfterViewInit(): void;\n ngOnDestroy(): void;\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;\n private _measureScrollHeight;\n private _cacheTextareaPlaceholderHeight;\n /** Handles `focus` and `blur` events. */\n private _handleFocusEvent;\n ngDoCheck(): void;\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): void;\n /**\n * Resets the textarea to its original size\n */\n reset(): void;\n _noopInputHandler(): void;\n /** Access injected document if available or fallback to global document reference */\n private _getDocument;\n /** Use defaultView of injected document if available or fallback to global window reference */\n private _getWindow;\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;\n static ngAcceptInputType_minRows: NumberInput;\n static ngAcceptInputType_maxRows: NumberInput;\n static ngAcceptInputType_enabled: BooleanInput;\n}\n"]} |
---|
Note:
See
TracBrowser
for help on using the repository browser.