UNPKG

@progress/kendo-angular-inputs

Version:

Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, Te

68 lines (67 loc) 3.09 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Component, HostBinding, Input } from '@angular/core'; import * as i0 from "@angular/core"; /** * Represents the suffix adornments container for the TextArea component. * * Nest the `<kendo-textarea-suffix>` component inside `<kendo-textarea>` to add elements after the input. * * @example * ```html * <kendo-textarea> * <kendo-textarea-suffix> * <button kendoButton look="clear" icon="image"></button> * </kendo-textarea-suffix> * </kendo-textarea> * ``` */ export class TextAreaSuffixComponent { /** * @hidden */ flow = 'vertical'; /** * @hidden */ orientation = 'horizontal'; hostClass = true; get verticalOrientation() { return this.orientation === 'vertical'; } get horizontalOrientation() { return this.orientation === 'horizontal'; } get alignItems() { return this.flow === this.orientation; } static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TextAreaSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: TextAreaSuffixComponent, isStandalone: true, selector: "kendo-textarea-suffix", inputs: { flow: "flow", orientation: "orientation" }, host: { properties: { "class.k-input-suffix": "this.hostClass", "class.k-input-suffix-vertical": "this.verticalOrientation", "class.k-input-suffix-horizontal": "this.horizontalOrientation", "class.!k-align-items-start": "this.alignItems" } }, exportAs: ["kendoTextAreaSuffix"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TextAreaSuffixComponent, decorators: [{ type: Component, args: [{ exportAs: 'kendoTextAreaSuffix', selector: 'kendo-textarea-suffix', template: `<ng-content></ng-content>`, standalone: true }] }], propDecorators: { flow: [{ type: Input }], orientation: [{ type: Input }], hostClass: [{ type: HostBinding, args: ['class.k-input-suffix'] }], verticalOrientation: [{ type: HostBinding, args: ['class.k-input-suffix-vertical'] }], horizontalOrientation: [{ type: HostBinding, args: ['class.k-input-suffix-horizontal'] }], alignItems: [{ type: HostBinding, args: ['class.!k-align-items-start'] }] } });