UNPKG

@progress/kendo-angular-layout

Version:

Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts

56 lines (55 loc) 2.53 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, HostBinding, Input } from '@angular/core'; import * as i0 from "@angular/core"; /** * Specifies a separator in the content of the Card. */ export class CardSeparatorDirective { hostClass = true; get verticalClass() { return this.orientation === 'vertical'; } get horizontalClass() { return this.orientation === 'horizontal'; } /** * Sets the color of the Card separator. */ color; /** * Specifies the orientation of the Card separator. * * The possible values are: * (Default) `horizontal` * `vertical` */ orientation = 'horizontal'; static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CardSeparatorDirective, isStandalone: true, selector: "[kendoCardSeparator]", inputs: { color: "color", orientation: "orientation" }, host: { properties: { "class.k-card-separator": "this.hostClass", "class.k-separator-vertical": "this.verticalClass", "class.k-separator-horizontal": "this.horizontalClass", "style.color": "this.color" } }, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardSeparatorDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoCardSeparator]', standalone: true }] }], propDecorators: { hostClass: [{ type: HostBinding, args: ['class.k-card-separator'] }], verticalClass: [{ type: HostBinding, args: ['class.k-separator-vertical'] }], horizontalClass: [{ type: HostBinding, args: ['class.k-separator-horizontal'] }], color: [{ type: HostBinding, args: ['style.color'] }, { type: Input }], orientation: [{ type: Input }] } });