@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
57 lines (56 loc) • 2.65 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* 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 { isPresent } from '@progress/kendo-angular-common';
import * as i0 from "@angular/core";
/**
* Represents a spacer in the content of components like TextArea and TextBox.
*
* @example
* ```html
* <kendo-textbox>
* <ng-template kendoTextBoxSuffixTemplate>
* <kendo-input-spacer></kendo-input-spacer>
* <button kendoButton icon="image"></button>
* </ng-template>
* </kendo-textbox>
* ```
*/
export class InputSpacerComponent {
hostClass = true;
get sizedClass() {
return isPresent(this.width);
}
get flexBasisStyle() {
return this.width;
}
/**
* Specifies the width of the Input Spacer.
* Accepts string values for the [CSS `flex-basis`](https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis) property.
* If not set, the Input Spacer takes all available space.
*/
width;
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputSpacerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InputSpacerComponent, isStandalone: true, selector: "kendo-input-spacer, kendo-textbox-spacer", inputs: { width: "width" }, host: { properties: { "class.k-spacer": "this.hostClass", "class.k-spacer-sized": "this.sizedClass", "style.flexBasis": "this.flexBasisStyle" } }, ngImport: i0, template: ``, isInline: true });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputSpacerComponent, decorators: [{
type: Component,
args: [{
selector: 'kendo-input-spacer, kendo-textbox-spacer',
template: ``,
standalone: true
}]
}], propDecorators: { hostClass: [{
type: HostBinding,
args: ['class.k-spacer']
}], sizedClass: [{
type: HostBinding,
args: ['class.k-spacer-sized']
}], flexBasisStyle: [{
type: HostBinding,
args: ['style.flexBasis']
}], width: [{
type: Input
}] } });