UNPKG

@cds/angular

Version:

Core component modules for Clarity Angular

184 lines (177 loc) 6.05 kB
import * as i0 from '@angular/core'; import { EventEmitter, Directive, Input, Output, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import '@cds/core/button-sort/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 CdsButtonSortDirective { constructor(elementRef) { this.sortChange = new EventEmitter(); this.element = elementRef.nativeElement; } get sort() { return this.element.sort; } set sort(value) { this.element.sort = value; } ; 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; } ; } CdsButtonSortDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonSortDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); CdsButtonSortDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: CdsButtonSortDirective, selector: "cds-button-sort", inputs: { sort: "sort", shape: "shape", action: "action", iconSize: "iconSize", i18n: "i18n", pressed: "pressed", expanded: "expanded", readonly: "readonly", type: "type", name: "name", value: "value", disabled: "disabled", popup: "popup" }, outputs: { sortChange: "sortChange" }, ngImport: i0 }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonSortDirective, decorators: [{ type: Directive, args: [{ selector: 'cds-button-sort' }] }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { sort: [{ type: Input }], 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 }], sortChange: [{ 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 CdsButtonSortModule { } CdsButtonSortModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonSortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); CdsButtonSortModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonSortModule, declarations: [CdsButtonSortDirective], imports: [CommonModule], exports: [CdsButtonSortDirective] }); CdsButtonSortModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonSortModule, imports: [[CommonModule]] }); i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: CdsButtonSortModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule], declarations: [ CdsButtonSortDirective, ], exports: [ CdsButtonSortDirective, ], }] }] }); /* * 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 { CdsButtonSortDirective, CdsButtonSortModule }; //# sourceMappingURL=button-sort.mjs.map