UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

172 lines (165 loc) 6.03 kB
import * as i0 from '@angular/core'; import { Directive, Input, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import '@cds/core/internal-components/close-button/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 CdsInternalCloseButtonDirective { constructor(elementRef) { this.element = elementRef.nativeElement; } get shape() { return this.element.shape; } set shape(value) { this.element.shape = value; } ; get action() { return this.element.action; } set action(value) { this.element.action = value; } ; get iconSize() { return this.element.iconSize; } set iconSize(value) { this.element.iconSize = value; } ; get i18n() { return this.element.i18n; } set i18n(value) { this.element.i18n = value; } ; 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; } ; } CdsInternalCloseButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalCloseButtonDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsInternalCloseButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsInternalCloseButtonDirective, selector: "cds-internal-close-button", inputs: { shape: "shape", action: "action", iconSize: "iconSize", i18n: "i18n", 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: CdsInternalCloseButtonDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-internal-close-button' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { shape: [{ type: Input }], action: [{ type: Input }], iconSize: [{ type: Input }], i18n: [{ type: Input }], 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 CdsInternalComponentsCloseButtonModule { } CdsInternalComponentsCloseButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsCloseButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); CdsInternalComponentsCloseButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsCloseButtonModule, declarations: [CdsInternalCloseButtonDirective], imports: [CommonModule], exports: [CdsInternalCloseButtonDirective] }); CdsInternalComponentsCloseButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsCloseButtonModule, imports: [[CommonModule]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsInternalComponentsCloseButtonModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule], declarations: [ CdsInternalCloseButtonDirective, ], exports: [ CdsInternalCloseButtonDirective, ], }] }] }); /* * 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 { CdsInternalCloseButtonDirective, CdsInternalComponentsCloseButtonModule }; //# sourceMappingURL=internal-components-close-button.mjs.map