UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

187 lines (179 loc) 6.99 kB
import * as i0 from '@angular/core'; import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import '@cds/core/input/register.js'; /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ class CdsInputDirective { constructor(elementRef) { this.layoutChange = new EventEmitter(); this.element = elementRef.nativeElement; } get status() { return this.element.status; } set status(value) { this.element.status = value; } ; get controlWidth() { return this.element.controlWidth; } set controlWidth(value) { this.element.controlWidth = value; } ; get validate() { return this.element.validate; } set validate(value) { this.element.validate = value === '' ? true : value; } ; get responsive() { return this.element.responsive; } set responsive(value) { this.element.responsive = value === '' ? true : value; } ; get layout() { return this.element.layout; } set layout(value) { this.element.layout = value; } ; } CdsInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsInputDirective, selector: "cds-input", inputs: { status: "status", controlWidth: "controlWidth", validate: "validate", responsive: "responsive", layout: "layout" }, outputs: { layoutChange: "layoutChange" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-input' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { status: [{ type: Input }], controlWidth: [{ type: Input }], validate: [{ type: Input }], responsive: [{ type: Input }], layout: [{ type: Input }], layoutChange: [{ type: Output }] } }); /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ class CdsInputGroupDirective { constructor(elementRef) { this.element = elementRef.nativeElement; } get status() { return this.element.status; } set status(value) { this.element.status = value; } ; get layout() { return this.element.layout; } set layout(value) { this.element.layout = value; } ; get controlAlign() { return this.element.controlAlign; } set controlAlign(value) { this.element.controlAlign = value; } ; get disabled() { return this.element.disabled; } set disabled(value) { this.element.disabled = value === '' ? true : value; } ; get controlWidth() { return this.element.controlWidth; } set controlWidth(value) { this.element.controlWidth = value; } ; get responsive() { return this.element.responsive; } set responsive(value) { this.element.responsive = value === '' ? true : value; } ; } CdsInputGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputGroupDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsInputGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsInputGroupDirective, selector: "cds-input-group", inputs: { status: "status", layout: "layout", controlAlign: "controlAlign", disabled: "disabled", controlWidth: "controlWidth", responsive: "responsive" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputGroupDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-input-group' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { status: [{ type: Input }], layout: [{ type: Input }], controlAlign: [{ type: Input }], disabled: [{ type: Input }], controlWidth: [{ type: Input }], responsive: [{ type: Input }] } }); /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ class CdsInputModule { } CdsInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); CdsInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputModule, declarations: [CdsInputDirective, CdsInputGroupDirective], imports: [CommonModule], exports: [CdsInputDirective, CdsInputGroupDirective] }); CdsInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputModule, imports: [[CommonModule]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInputModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule], declarations: [ CdsInputDirective, CdsInputGroupDirective, ], exports: [ CdsInputDirective, CdsInputGroupDirective, ], }] }] }); /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ /* * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ /** * Generated bundle index. Do not edit. */ export { CdsInputDirective, CdsInputGroupDirective, CdsInputModule }; //# sourceMappingURL=input.mjs.map