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

56 lines (55 loc) 2.75 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 a separator in the content of components like TextArea and TextBox. ([see examples]({% slug adornments_textbox %}#toc-separator)). * * @example * ```html * <kendo-textbox> * <ng-template kendoTextBoxSuffixTemplate> * <kendo-input-separator></kendo-input-separator> * <button kendoButton icon="image"></button> * </ng-template> * </kendo-textbox> * ``` */ export class InputSeparatorComponent { /** * Sets the orientation of the separator. Use this for the adornments of the [`TextAreaComponent`](slug:api_inputs_textareacomponent). * * @default 'vertical' */ orientation = 'vertical'; get vertical() { return this.orientation === 'vertical'; } get horizontal() { return this.orientation === 'horizontal'; } hostClass = true; static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InputSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InputSeparatorComponent, isStandalone: true, selector: "kendo-input-separator, kendo-textbox-separator", inputs: { orientation: "orientation" }, host: { properties: { "class.k-input-separator-vertical": "this.vertical", "class.k-input-separator-horizontal": "this.horizontal", "class.k-input-separator": "this.hostClass" } }, ngImport: i0, template: ``, isInline: true }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InputSeparatorComponent, decorators: [{ type: Component, args: [{ selector: 'kendo-input-separator, kendo-textbox-separator', template: ``, standalone: true }] }], propDecorators: { orientation: [{ type: Input }], vertical: [{ type: HostBinding, args: ['class.k-input-separator-vertical'] }], horizontal: [{ type: HostBinding, args: ['class.k-input-separator-horizontal'] }], hostClass: [{ type: HostBinding, args: ['class.k-input-separator'] }] } });