UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

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