UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

136 lines (129 loc) 4.92 kB
import * as i0 from '@angular/core'; import { Directive, Input, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import '@cds/core/button-inline/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 CdsButtonInlineDirective { constructor(elementRef) { this.element = elementRef.nativeElement; } get pressed() { return this.element.pressed; } set pressed(value) { this.element.pressed = value === '' ? true : value; } ; get expanded() { return this.element.expanded; } set expanded(value) { this.element.expanded = value === '' ? true : value; } ; get readonly() { return this.element.readonly; } set readonly(value) { this.element.readonly = value === '' ? true : value; } ; get type() { return this.element.type; } set type(value) { this.element.type = value; } ; get name() { return this.element.name; } set name(value) { this.element.name = value; } ; get value() { return this.element.value; } set value(value) { this.element.value = value; } ; get disabled() { return this.element.disabled; } set disabled(value) { this.element.disabled = value === '' ? true : value; } ; get popup() { return this.element.popup; } set popup(value) { this.element.popup = value; } ; } CdsButtonInlineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonInlineDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsButtonInlineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsButtonInlineDirective, selector: "cds-button-inline", inputs: { pressed: "pressed", expanded: "expanded", readonly: "readonly", type: "type", name: "name", value: "value", disabled: "disabled", popup: "popup" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonInlineDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-button-inline' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { pressed: [{ type: Input }], expanded: [{ type: Input }], readonly: [{ type: Input }], type: [{ type: Input }], name: [{ type: Input }], value: [{ type: Input }], disabled: [{ type: Input }], popup: [{ 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 CdsButtonInlineModule { } CdsButtonInlineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonInlineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); CdsButtonInlineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonInlineModule, declarations: [CdsButtonInlineDirective], imports: [CommonModule], exports: [CdsButtonInlineDirective] }); CdsButtonInlineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonInlineModule, imports: [[CommonModule]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonInlineModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule], declarations: [ CdsButtonInlineDirective, ], exports: [ CdsButtonInlineDirective, ], }] }] }); /* * 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 { CdsButtonInlineDirective, CdsButtonInlineModule }; //# sourceMappingURL=button-inline.mjs.map